From 33e87b39697f507ac65a779861b641f96744ada0 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 16 Feb 2003 11:39:54 +0000 Subject: [PATCH] dont forget borders/bevels --- otk/widget.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)); } -- 2.45.2