dont forget borders/bevels

This commit is contained in:
Dana Jansens 2003-02-16 11:39:54 +00:00
parent afe1d9e3a8
commit 33e87b3969

View file

@ -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));
}