From: mfranz Date: Sat, 24 Feb 2007 19:43:19 +0000 (+0000) Subject: don't descend into groups to avoid padding space beind added around X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1d880a944f2881e3993d040acacd99d5a5d4cc0a;p=flightgear.git don't descend into groups to avoid padding space beind added around --- diff --git a/src/GUI/layout.cxx b/src/GUI/layout.cxx index 0f2b81059..730142d04 100644 --- a/src/GUI/layout.cxx +++ b/src/GUI/layout.cxx @@ -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);