Regression Fix: Overflow in column scroll. Updated ugly hack.
[pillar-svnman.git] / src / templates / svnman / layout.pug
index 7ac1660..9431345 100644 (file)
@@ -71,8 +71,11 @@ html(lang="en")
                                {% endif %}
                        });
 
+                       // Ugly hack to make scrollable column not overflow
+                       // TODO: Remove this and write proper CSS!!
+                       let headerHeight = 85;
                        $(window).on('load resize', function(){
-                               var window_height = $(window).height() - 55; // header is 55px
+                               var window_height = $(window).height() - headerHeight;
                                $('.col-scrollable').css({'height': window_height});
                        });