1. Rajeesh Nair
  2. tinkerer

Commits

Vlad Riscutia  committed bc402de

Update size fix to use documentwrapper instead of content

  • Participants
  • Parent commits 3d5cdd8
  • Branches html5

Comments (0)

Files changed (1)

File tinkerer/themes/modern5/layout.html

View file
  • Ignore whitespace
     {# Adjusts document height if sidebar is taller #}
     <script type="text/javascript">
         $(document).ready(function () {
-            var content = document.getElementsByClassName("content")[0];
+            var documentwrapper = document.getElementsByClassName("documentwrapper")[0];
             var sidebar = document.getElementsByClassName("sidebar")[0];
 
-            if (sidebar.offsetHeight > content.offsetHeight)
+            if (sidebar.offsetHeight > documentwrapper.offsetHeight)
             {
-                content.style.minHeight = sidebar.offsetHeight + "px";
+                documentwrapper.style.minHeight = sidebar.offsetHeight + "px";
             }
         });
     </script>