1
0
Fork 0

don't descend into <nasal> groups to avoid padding space beind added around

This commit is contained in:
mfranz 2007-02-24 19:43:19 +00:00
parent 5d7b9ec1f1
commit 1d880a944f

View file

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