Created
July 24, 2013 14:24
-
-
Save anonymous/6071043 to your computer and use it in GitHub Desktop.
ipad fix topbar issue with input box / textarea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://stackoverflow.com/questions/8057485/positionfixed-in-ios5-moves-when-input-is-focused | |
| inputs.connect('focusin', dojo.hitch( this, this._fixTopBar )); | |
| inputs.connect('focusout', dojo.hitch( this, this._fixTopBar )); | |
| _fixTopBar: function(ev){ | |
| var topbar= dojo.byId('ibm-mast-options'); | |
| dojo.body().scrollTop = 0; | |
| dojo.style(topbar, {'position': 'absolute', top:'0px'}); | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment