瀏覽代碼

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 %}