VE-1288: There is no need to listen to resize and scroll event if contex...

...t menu is not displayed - so as an improvement - listen to those events only when context menu is displayed.