From f36bbe54aacfb491e112602480f958848d153512 Mon Sep 17 00:00:00 2001 From: Aaron Boodman Date: Sat, 8 Feb 2014 15:39:58 -0800 Subject: [PATCH] Improve layout on mobile. There is still a lot of work to do on mobile, but this makes it slightly better. Increases the default scale to something sane. Fix the bug where we don't layout using entire width. window.outerWidth is somehow completely busted on mobile. Change-Id: Id574d6ee14ba59f6e835725d378f228796ff7ccf --- server/camlistored/ui/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/camlistored/ui/index.html b/server/camlistored/ui/index.html index e85dd3dcb..7e2e24c56 100644 --- a/server/camlistored/ui/index.html +++ b/server/camlistored/ui/index.html @@ -17,6 +17,8 @@ limitations under the License. + + @@ -50,7 +52,7 @@ limitations under the License. var lastWidth = -1; var lastHeight = -1; var render = function() { - var currentWidth = window.outerWidth; + var currentWidth = window.innerWidth; var currentHeight = window.innerHeight; if (currentWidth == lastWidth && currentHeight == lastHeight) { return;