diff options
author | Struan Donald <struan@exo.org.uk> | 2013-08-15 15:44:12 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-08-15 15:44:12 +0100 |
commit | e6f671d6f814fe1bed518ffb2858b72f3b85b71f (patch) | |
tree | 6036b82f5b2903f7c469e1ac6473b62281831b9d /src/js/app.js | |
parent | 9c4b51bad1115614e239c022db666fc9fdfc6ede (diff) |
Fix android 2 scrolling caused by help
Because the help overlay is not fixed height in android 2 it was
causing the screen to be scrollable. Fixed by only showing the help when
we actually need to display it and setting it to hidden the rest of the
time
Diffstat (limited to 'src/js/app.js')
-rw-r--r-- | src/js/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/js/app.js b/src/js/app.js index 5c88ab9..660f689 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -154,9 +154,9 @@ var tpl = { if ( !help.hasClass('android2') ) { helpContent.height(helpHeight - 60); + help.show(); } help.css('left', viewWidth); - help.show(); }, helpShow: function(e) { @@ -186,6 +186,9 @@ var tpl = { var onHide = function() { $('#display-help').show(); $('#helpContent').scrollTop(0); + if ( $('#help').hasClass('android2') ) { + $('#help').hide(); + } }; help.animate({left: viewWidth}, 400, 'swing', onHide ); }, |