From 894555b0a713430ee5cbb743bb0250eb6bf92b3c Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Tue, 13 Mar 2007 02:58:05 +0000 Subject: r21810: - The height of a widget is in relation to its enclosing widget. Specifying a height of 100% means that if the enclosing widget is 100 pixels high, this widget should be 100 pixels high. If this widget is then placed someplace other than at the top of the enclosing widget, e.g. with top:20, the bottom of this widget will fall off the bottom of the enclosing widget. The normal way to solve this is to specify top and bottom attributes rather than top and height attributes. Also, since widgets often look better if they don't extend all the way to the very bottom, specifying a bottom attribute equal to the top attribute typically has an appealing appearance. I've fixed the tree widget so it no longer falls off the bottom of the page. (This used to be commit 44d5f5ec6db76c981f94e7322f82592e5d85be9f) --- webapps/swat/source/class/swat/module/netmgr/Gui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapps') diff --git a/webapps/swat/source/class/swat/module/netmgr/Gui.js b/webapps/swat/source/class/swat/module/netmgr/Gui.js index 3b62337811..d1376ab4c6 100644 --- a/webapps/swat/source/class/swat/module/netmgr/Gui.js +++ b/webapps/swat/source/class/swat/module/netmgr/Gui.js @@ -24,7 +24,7 @@ qx.Proto.buildGui = function(module) top: 20, left: 20, right: 20, - height: "100%" + bottom: 20 }); // Create a hosts tree -- cgit