Commits

Vlad Riscutia committed bc402de

Update size fix to use documentwrapper instead of content

Comments (0)

Files changed (1)

tinkerer/themes/modern5/layout.html

     {# 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>