int LayoutWidget::padding()
{
int pad = isType("group") ? 0 : 4;
- if(isType("dialog")) pad = 2;
+ // As comments above note, this was being set to 2. For some
+ // reason this causes the dialogs to shrink on subsequent pops
+ // so for now we'll make "dialog" padding 0.
+ if(isType("dialog")) pad = 0;
if(hasParent() && parent().hasField("default-padding"))
pad = parent().getNum("default-padding");
if(hasField("padding"))
*w = 17*UNIT;
*h = 6*UNIT;
} else if (isType("slider")) {
- if(getBool("vertical")) *w = 3*UNIT;
- else *h = 3*UNIT;
+ *w = *h = 17*UNIT;
+ if(getBool("vertical")) *w = 4*UNIT;
+ else *h = 4*UNIT;
} else if (isType("list") || isType("airport-list") || isType("dial")) {
*w = *h = 12*UNIT;
}
w = h = 3*UNIT;
} else if (isType("slider")) {
// Fix the thickness to a constant
- if(getBool("vertical")) { x += (w-3*UNIT)/2; w = 3*UNIT; }
- else { y += (h-3*UNIT)/2; h = 3*UNIT; }
+ if(getBool("vertical")) { x += (w-4*UNIT)/2; w = 4*UNIT; }
+ else { y += (h-4*UNIT)/2; h = 4*UNIT; }
}
// Set out output geometry