Print this page
*** NO COMMENTS ***

*** 486,495 **** --- 486,498 ---- if (!undecorated) { CWrapper.NSWindow.zoom(getNSWindowPtr()); } else { deliverZoom(true); + // We need an up to date size of the peer, so we flush the native events + // to be sure that there are no setBounds requests in the queue. + LWCToolkit.flushNativeSelectors(); this.normalBounds = peer.getBounds(); GraphicsConfiguration config = getPeer().getGraphicsConfiguration(); Insets i = ((CGraphicsDevice)config.getDevice()).getScreenInsets(); Rectangle toBounds = config.getBounds();