maybe a mistake in branching
rezise with directive
Resizing works!

on menuclick and window.onresize
cleend a little the js
resizing on menuclicked and window.onresize