summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-08-09 15:12:09 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-08-09 15:12:09 +0100
commit6386aaedb30958b4f0bf1fd863cba88f14c61208 (patch)
tree162a97aa196ebd858ba240f2e3e5b4fb29e5db71
parent222d16ec10e8887acb467b9f827fd6b8f8f40b2f (diff)
downloadleaflet-soton-6386aaedb30958b4f0bf1fd863cba88f14c61208.tar
leaflet-soton-6386aaedb30958b4f0bf1fd863cba88f14c61208.tar.gz
Improve display on small screens
Do not force the appearance of scrollbars
-rw-r--r--src/leaflet-soton.js10
1 files changed, 2 insertions, 8 deletions
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) {