From fbfc43937201c1465ee17ec019817ec52ff981c2 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 31 May 2022 07:03:29 +0200 Subject: [PATCH] ui: system config: improve bottom margins and scroll behavior setting scrollable on the parent tab panel makes not much sense and will always add a scroll bar that can scroll a few pixels, even if there's enough space. Rather set it to true (= auto) in the actual panels that hold the content. Also set a bottom margin so that users can see the "end" of the panel at the bottom, otherwise it looked like it had a start and sides, but no bottom. Signed-off-by: Thomas Lamprecht --- www/SystemConfiguration.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/SystemConfiguration.js b/www/SystemConfiguration.js index 5922ef7a..cdc9de35 100644 --- a/www/SystemConfiguration.js +++ b/www/SystemConfiguration.js @@ -4,7 +4,6 @@ Ext.define('PBS.SystemConfiguration', { title: gettext('Configuration') + ': ' + gettext('System'), border: true, - scrollable: true, defaults: { border: false }, tools: [PBS.Utils.get_help_tool("sysadmin-network-configuration")], items: [ @@ -18,10 +17,11 @@ Ext.define('PBS.SystemConfiguration', { align: 'stretch', multi: true, }, + scrollable: true, defaults: { collapsible: true, animCollapse: false, - margin: '10 10 0 10', + margin: '7 10 3 10', }, items: [ { @@ -55,10 +55,11 @@ Ext.define('PBS.SystemConfiguration', { align: 'stretch', multi: true, }, + scrollable: true, defaults: { collapsible: true, animCollapse: false, - margin: '10 10 0 10', + margin: '7 10 3 10', }, items: [ {