LayoutManager.resetSize()
[fanfix.git] / src / jexer / TWidget.java
index 60bc3e4a618c0cce09d84cbdbedfdc200da39906..e94fed25077c68ca763b8dc90e76b98d36898469 100644 (file)
@@ -935,8 +935,9 @@ public abstract class TWidget implements Comparable<TWidget> {
 
         this.x = x;
         this.y = y;
-        this.width = width;
-        this.height = height;
+        // Call the functions so that subclasses can choose how to handle it.
+        setWidth(width);
+        setHeight(height);
         if (layout != null) {
             layout.onResize(new TResizeEvent(TResizeEvent.Type.WIDGET,
                     width, height));