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.
This commit is contained in:
hastarin 2013-05-09 01:48:59 +10:00
parent ff6d261407
commit c630277c25
3 changed files with 2 additions and 4 deletions

View File

@ -33,7 +33,7 @@ window.portalHighlighterControl = function() {
}); });
$("#portal_highlight_select").val(_current_highlighter); $("#portal_highlight_select").val(_current_highlighter);
$("#portal_highlight_select").change(function(){ changePortalHighlights($(this).val());}); $("#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'); $(".leaflet-control-scale-line").css('margin-top','25px');
} }
} }

View File

@ -77,8 +77,6 @@ window.runOnSmartphonesAfterBoot = function() {
// disable img full view // disable img full view
$('#portaldetails').off('click', '**'); $('#portaldetails').off('click', '**');
$('.leaflet-right').addClass('leaflet-left').removeClass('leaflet-right');
// make buttons in action bar flexible // make buttons in action bar flexible
var l = $('#chatcontrols a:visible'); var l = $('#chatcontrols a:visible');
l.css('width', 100/l.length + '%'); l.css('width', 100/l.length + '%');

View File

@ -139,5 +139,5 @@ body {
#portal_highlight_select{ #portal_highlight_select{
top:0px !important; top:0px !important;
left:60px !important; left:0px !important;
} }