From c630277c256b21952eedd1d23f4ac3ba197e26c9 Mon Sep 17 00:00:00 2001 From: hastarin Date: Thu, 9 May 2013 01:48:59 +1000 Subject: [PATCH] More tweaks to mobile layout. Known issues: - A touch is generating two clicks. Most noticeable with pan plugin. - The pan plugin requires the +/- zoom buttons be enabled. --- code/portal_highlighter.js | 2 +- code/smartphone.js | 2 -- mobile/smartphone.css | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/code/portal_highlighter.js b/code/portal_highlighter.js index bd945865..05bfd911 100644 --- a/code/portal_highlighter.js +++ b/code/portal_highlighter.js @@ -33,7 +33,7 @@ window.portalHighlighterControl = function() { }); $("#portal_highlight_select").val(_current_highlighter); $("#portal_highlight_select").change(function(){ changePortalHighlights($(this).val());}); - $(".leaflet-top.leaflet-left").css('padding-top', window.isSmartphone ? '55px' : '20px'); + $(".leaflet-top.leaflet-left").css('padding-top', '20px'); $(".leaflet-control-scale-line").css('margin-top','25px'); } } diff --git a/code/smartphone.js b/code/smartphone.js index cdbabc4f..562c7b38 100644 --- a/code/smartphone.js +++ b/code/smartphone.js @@ -77,8 +77,6 @@ window.runOnSmartphonesAfterBoot = function() { // disable img full view $('#portaldetails').off('click', '**'); - $('.leaflet-right').addClass('leaflet-left').removeClass('leaflet-right'); - // make buttons in action bar flexible var l = $('#chatcontrols a:visible'); l.css('width', 100/l.length + '%'); diff --git a/mobile/smartphone.css b/mobile/smartphone.css index 6feda6e9..ca0e782a 100644 --- a/mobile/smartphone.css +++ b/mobile/smartphone.css @@ -139,5 +139,5 @@ body { #portal_highlight_select{ top:0px !important; - left:60px !important; + left:0px !important; }