commit/galaxy-central: james_taylor: Fix for scrolling on iOS (thanks Carrie Ganote!)
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/312ba8a948a1/ changeset: 312ba8a948a1 user: james_taylor date: 2013-01-04 20:38:06 summary: Fix for scrolling on iOS (thanks Carrie Ganote!) affected #: 1 file diff -r 8676b55d191c6742e6e7b8864e47918719314f78 -r 312ba8a948a1c678bea807f4a0d3320af8363968 templates/root/index.mako --- a/templates/root/index.mako +++ b/templates/root/index.mako @@ -71,6 +71,15 @@ galaxy_main.location = "${h.url_for( controller='history', action='import_archive' )}"; } }); + + // Fix iFrame scrolling on iOS + if( navigator.userAgent.match( /(iPhone|iPod|iPad)/i ) ) { + $("iframe").parent().css( { + "overflow": "scroll", + "-webkit-overflow-scrolling": "touch", + }) + } + }); </script></%def> @@ -118,7 +127,9 @@ center_url = h.url_for( '/static/welcome.html' ) %> - <iframe name="galaxy_main" id="galaxy_main" frameborder="0" style="position: absolute; width: 100%; height: 100%;" src="${center_url}"></iframe> + <div style="position: absolute; width: 100%; height: 100%"> + <iframe name="galaxy_main" id="galaxy_main" frameborder="0" style="position: absolute; width: 100%; height: 100%;" src="${center_url}"></iframe> + </div></%def> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket