]> git.mxchange.org Git - flightgear.git/commitdiff
don't descend into <nasal> groups to avoid padding space beind added around
authormfranz <mfranz>
Sat, 24 Feb 2007 19:43:19 +0000 (19:43 +0000)
committermfranz <mfranz>
Sat, 24 Feb 2007 19:43:19 +0000 (19:43 +0000)
src/GUI/layout.cxx

index 0f2b81059f204b13fd2fb7cd5d381d76da1d91ff..730142d04086d24924183d87494a04f9fdd6b95a 100644 (file)
@@ -39,7 +39,7 @@ void LayoutWidget::calcPrefSize(int* w, int* h)
 {
     *w = *h = 0; // Ask for nothing by default
 
-    if (getBool("hide"))
+    if (getBool("hide") || isType("nasal"))
         return;
 
     int legw = stringLength(getStr("legend"));
@@ -97,7 +97,7 @@ void LayoutWidget::calcPrefSize(int* w, int* h)
 // Set up geometry such that the widget lives "inside" the specified 
 void LayoutWidget::layout(int x, int y, int w, int h)
 {
-    if (getBool("hide"))
+    if (getBool("hide") || isType("nasal"))
         return;
 
     setNum("__bx", x);