mirror of https://github.com/adamdruppe/arsd.git
fieldset bugs
This commit is contained in:
parent
d958638298
commit
43c839cbf9
10
minigui.d
10
minigui.d
|
@ -5854,11 +5854,17 @@ class Fieldset : Widget {
|
|||
override int maxHeight() {
|
||||
auto m = paddingTop() + paddingBottom();
|
||||
foreach(child; children) {
|
||||
m += child.maxHeight();
|
||||
auto mh = child.maxHeight();
|
||||
if(mh == int.max)
|
||||
return int.max;
|
||||
m += mh;
|
||||
m += child.marginBottom();
|
||||
m += child.marginTop();
|
||||
}
|
||||
return m + 6;
|
||||
m += 6;
|
||||
if(m < minHeight)
|
||||
return minHeight;
|
||||
return m;
|
||||
}
|
||||
|
||||
override int minHeight() {
|
||||
|
|
Loading…
Reference in New Issue