From: Dana Jansens Date: Sun, 16 Feb 2003 11:39:54 +0000 (+0000) Subject: dont forget borders/bevels X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=33e87b39697f507ac65a779861b641f96744ada0;p=chaz%2Fopenbox dont forget borders/bevels --- diff --git a/otk/widget.cc b/otk/widget.cc index 690224d8..46b50cab 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -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)); }