Преглед изворни кода

Restore styles needed for Google maps display

Scot Hacker пре 8 година
родитељ
комит
89acb88252
1 измењених фајлова са 11 додато и 6 уклоњено
  1. 11 6
      bakerydemo/templates/locations/location_page.html

+ 11 - 6
bakerydemo/templates/locations/location_page.html

@@ -2,12 +2,17 @@
 {% load wagtailimages_tags navigation_tags %}
 
 {% block head-extra %}
-  <style>
-      /* Needed for Google map embed */
-      #map {
-        height: 100%;
-      }
-  </style>
+    <style>
+        /* Following two selectors needed for Google map embed */
+        #map {
+          height: 100%;
+        }
+        html, body {
+          height: 100%;
+          margin: 0;
+          padding: 0;
+        }
+    </style>
 {% endblock head-extra %}