[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: Posible bug when maximizing an already maximized stage on Mac
From:       José Pereda <jose.pereda () gluonhq ! com>
Date:       2016-03-31 10:38:16
Message-ID: CAGMSBrK_UP0TLkhN5Rp+yTJzx3XKynpL3zJcy4ZteE0eCJ2O8g () mail ! gmail ! com
[Download RAW message or body]

Hi Jerome,

Your last comment is related to this open issue:
https://bugs.openjdk.java.net/browse/JDK-8087618

Jose

On Thu, Mar 31, 2016 at 12:31 PM, Jérome Cambon <jerome.p.cambon@gmail.com>
wrote:

> Hi,
>
> I can reproduce the issue as well, on both my Mac Retina display and my
> external display.
> Additional comments:
> - If one resize the window and click the maximize button several times: no
> issue
> - Once maximized, if one resize the window by only few pixels, and click
> the maximize button: nothing happen.
> - I guess the ‘maximized' property should be set to false as soon as the
> window is resized: this is not the case.
>
> Jerome
>
>
> > On Mar 31, 2016, at 11:16 AM, José Pereda <jose.pereda@gluonhq.com>
> wrote:
> >
> > Hi all,
> >
> > Running this little test on a MacBook Pro Retina, OS X 10.11.4, with JDK
> > 8u77:
> >
> >    @Override
> >    public void start(Stage stage) {
> >        Button button = new Button("Click to maximize");
> >        button.setOnAction(e -> stage.setMaximized(true));
> >        Rectangle2D bounds = Screen.getPrimary().getVisualBounds();
> >        stage.setScene(new Scene(new StackPane(button), bounds.getWidth(),
> > bounds.getHeight()));
> >        stage.show();
> >    }
> >
> > which shouldn't do anything at all, since the stage is already maximized,
> > turns into an iconified application, with root dimensions 0x0, stage
> > dimensions 0x22 (height of menubar), stage.isIconified() returns false,
> and
> > it can't be restored again to any visible size by any means other than
> > closing the application from the dock.
> >
> > A posible situation where this could happen: persisting and restoring the
> > properties (x, y, width, height and maximized) of a maximized stage.
> >
> >
> > I haven't found any report of this. Should I file a bug?
> >
> > Thanks,
> > Jose
> >
> > --
>
>


--
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic