From cacc0359a6c52f961abd48256026117532e4d2b6 Mon Sep 17 00:00:00 2001 From: Darren Date: Wed, 31 Oct 2012 00:17:20 +0000 Subject: [PATCH] Client: Improved panel sizing Gaps at the top + bottom on the server select screen removed --- client/assets/dev/view.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/client/assets/dev/view.js b/client/assets/dev/view.js index 0b3eed2..d15e691 100644 --- a/client/assets/dev/view.js +++ b/client/assets/dev/view.js @@ -949,10 +949,22 @@ kiwi.view.Application = Backbone.View.extend({ bottom: el_controlbox.outerHeight(true) }; + + // If any elements are not visible, full size the panals instead + if (!el_toolbar.is(':visible')) { + css_heights.top = 0; + } + + if (!el_controlbox.is(':visible')) { + css_heights.bottom = 0; + } + + // Apply the CSS sizes el_panels.css(css_heights); el_memberlists.css(css_heights); el_resize_handle.css(css_heights); + // Set the panels width depending on the memberlist visibility if (el_memberlists.css('display') != 'none') { // Handle + panels to the side of the memberlist el_panels.css('right', el_memberlists.outerWidth(true) + el_resize_handle.outerWidth(true)); -- 2.25.1