]> Dogcows Code - chaz/openbox/commitdiff
dont forget borders/bevels
authorDana Jansens <danakj@orodu.net>
Sun, 16 Feb 2003 11:39:54 +0000 (11:39 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Feb 2003 11:39:54 +0000 (11:39 +0000)
otk/widget.cc

index 690224d897d7c13124cda435d717503ff1724fe0..46b50cab0af4bc74e5d15fe5252e9da1c735418b 100644 (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));
   }
This page took 0.025356 seconds and 4 git commands to generate.