01org/appframework — pull request #448 by krisrak (2013-11-07 19:45:04+00:00)
Title: fix for slidemenu Issue #447

Issue
-
On first time load, if you slide left when the side menu is already closed, it has a weird effect where the panel detaches from the right edge and slides. This happens only the first time after load.

Test case
-
Issue can be reproduced with AF kitchen sink app, open app on phone form factor and try to swipe left, (i.e try to close side menu when it is already closed), notice that the panel detaches from the right edge and has a weird effect.

Fix Description
-
The plugin blocks sliding wrong direction by checking if "#menu" display style is none, at start the "#menu" display is not none, so added ```$.ui.toggleSideMenu(false, null, 0);``` at plugin start so that the display is set to none for "#menu" at start. Fix has been tested on phone and tablet resolution where the side menu is always open.