Fixed layout value warning to accept other valid layout values
Added sanity checks into grid layout computation
Fixed menu UI tests by specifying primary mouse button
Explicitly specifying mouse event pageX and pageY for drag and drop tests
Merge pull request #1234 from jameschao/layout_warning_fix

Fixes for various failing tests