Fix for opening the menuBox above the control

* added a check for viewport
* added two separate classes on control and list "menuAbove" and "menuBelow", respectively