From 6386aaedb30958b4f0bf1fd863cba88f14c61208 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 9 Aug 2014 15:12:09 +0100 Subject: Improve display on small screens Do not force the appearance of scrollbars --- src/leaflet-soton.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js index 40e70a8..799b2a4 100644 --- a/src/leaflet-soton.js +++ b/src/leaflet-soton.js @@ -1204,13 +1204,10 @@ SELECT * WHERE {\ // Rooms if (indoor) { - tabs.rooms.style.minWidth = imageWidth + "px"; tabs.rooms.style.minHeight = imageHeight + "px"; - - tabs.rooms.style.maxWidth = imageWidth + "px"; tabs.rooms.style.maxHeight = imageHeight + "px"; - tabs.rooms.style.overflow = 'scroll'; + tabs.rooms.style.overflow = 'auto'; for (var level in properties.rooms) { var rooms = properties.rooms[level]; @@ -1273,13 +1270,10 @@ SELECT * WHERE {\ }); } - tabs.services.style.minWidth = imageWidth + "px"; tabs.services.style.minHeight = imageHeight + "px"; - - tabs.services.style.maxWidth = imageWidth + "px"; tabs.services.style.maxHeight = imageHeight + "px"; - tabs.services.style.overflow = 'scroll'; + tabs.services.style.overflow = 'auto'; if ("services" in properties) { if ("vendingMachines" in properties.services) { -- cgit v1.2.3