Skip to content

Instantly share code, notes, and snippets.

@ghernandez345
Created June 25, 2013 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghernandez345/5854907 to your computer and use it in GitHub Desktop.
Save ghernandez345/5854907 to your computer and use it in GitHub Desktop.
Stupid hack for dumb android to fix a damn fixed button diappearing
// The only reason this stupid method exists is because some versions of android
// will not render the a fixed element correctly. We move it just so this dumb button
// will be visible.
moveButton: function () {
var self = this;
this.$('.buttons-section').css({bottom: '1px'});
setTimeout(function () {
self.$('.buttons-section').css({bottom: 0});
}, 200);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment