dont forget borders/bevels
This commit is contained in:
parent
afe1d9e3a8
commit
33e87b3969
1 changed files with 4 additions and 2 deletions
|
@ -230,12 +230,14 @@ void Widget::calcDefaultSizes()
|
|||
}
|
||||
}
|
||||
if (_direction == Horizontal) {
|
||||
_min_size = otk::Size(min_sum, min_biggest + (_bevel + _borderwidth) * 2);
|
||||
_min_size = otk::Size(min_sum + (_bevel + _borderwidth) * 2,
|
||||
min_biggest + (_bevel + _borderwidth) * 2);
|
||||
_max_size = otk::Size((fullmax ? INT_MAX :
|
||||
max_sum + (_bevel + _borderwidth) * 2),
|
||||
max_biggest);
|
||||
} else {
|
||||
_min_size = otk::Size(min_biggest, min_sum + (_bevel + _borderwidth) * 2);
|
||||
_min_size = otk::Size(min_biggest + (_bevel + _borderwidth) * 2,
|
||||
min_sum + (_bevel + _borderwidth) * 2);
|
||||
_max_size = otk::Size(max_biggest, (fullmax ? INT_MAX : max_sum +
|
||||
(_bevel + _borderwidth) * 2));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue