From: Darren Date: Wed, 31 Oct 2012 00:17:20 +0000 (+0000) Subject: Client: Improved panel sizing X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cacc0359a6c52f961abd48256026117532e4d2b6;p=KiwiIRC.git Client: Improved panel sizing Gaps at the top + bottom on the server select screen removed --- 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));