X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjexer%2FTApplication.java;h=96dad6cc0b0cece1541d43dccab333b813f233d0;hb=7d922e0dfd9a6da42b84e01d52adeec6fff10025;hp=7f491a5ba712dad54431dcea705128cc1eab0169;hpb=72b6bd90316d58e87afbed110164cc2f203ec919;p=nikiroo-utils.git diff --git a/src/jexer/TApplication.java b/src/jexer/TApplication.java index 7f491a5..96dad6c 100644 --- a/src/jexer/TApplication.java +++ b/src/jexer/TApplication.java @@ -2063,6 +2063,9 @@ public class TApplication implements Runnable { } TWindow w = sorted.get(i); + int oldWidth = w.getWidth(); + int oldHeight = w.getHeight(); + w.setX(logicalX * newWidth); w.setWidth(newWidth); if (i >= ((a - 1) * b)) { @@ -2072,6 +2075,12 @@ public class TApplication implements Runnable { w.setY((logicalY * newHeight1) + 1); w.setHeight(newHeight1); } + if ((w.getWidth() != oldWidth) + || (w.getHeight() != oldHeight) + ) { + w.onResize(new TResizeEvent(TResizeEvent.Type.WIDGET, + w.getWidth(), w.getHeight())); + } } } }