From 08d1f401c40144e43035fb0c738e44397a1be18f Mon Sep 17 00:00:00 2001 From: Shane Tomlinson <stomlinson@mozilla.com> Date: Fri, 17 Feb 2012 13:11:45 +0000 Subject: [PATCH] Fix zoom/scrolling issues across platforms. * Set both resizable and scrollbars to 1 for users who have their browsers zoomed. * Set the body's overflow-y to auto so no scrollbars are shown unless they are needed. issue #423 --- resources/static/css/common.css | 2 +- resources/static/include_js/include.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/static/css/common.css b/resources/static/css/common.css index 21d995029..558d082f2 100644 --- a/resources/static/css/common.css +++ b/resources/static/css/common.css @@ -21,7 +21,7 @@ body { font-size: 13px; line-height: 21px; background-image: url('/i/bg.png'); - overflow-y: scroll; + overflow-y: auto; } /* for floats */ diff --git a/resources/static/include_js/include.js b/resources/static/include_js/include.js index e835b8bd2..b7172a145 100644 --- a/resources/static/include_js/include.js +++ b/resources/static/include_js/include.js @@ -354,7 +354,7 @@ } }, timeout); } - + var onMessage = function(origin, method, m) { // if an observer was specified at allocation time, invoke it if (typeof cfg.gotMessageObserver === 'function') { @@ -914,7 +914,7 @@ var isFennec = navigator.userAgent.indexOf('Fennec/') != -1; var windowOpenOpts = (isFennec ? undefined : - "menubar=0,location=1,resizable=0,scrollbars=0,status=0,dialog=1,width=700,height=375"); + "menubar=0,location=1,resizable=1,scrollbars=1,status=0,dialog=1,width=700,height=375"); var w; -- GitLab