How can a stage decoration change?

Thiago Milczarek Sayao thiago.sayao at clamed.com.br
Wed Dec 18 11:59:28 UTC 2019


Well, Windows glass native implementation just ignores it.

I am working on some changes on linux glass implementation because the current implementation has too many special case handling (I have added some myself to fix some bugs). I want to do a more "direct flow" code. Will file a bug and provide a PR when it's ready and pass the tests.

Cheers.
________________________________
De: Kevin Rushforth <kevin.rushforth at oracle.com>
Enviado: terça-feira, 17 de dezembro de 2019 18:49
Para: Thiago Milczarek Sayao <thiago.sayao at clamed.com.br>; openjfx-dev at openjdk.java.net <openjfx-dev at openjdk.java.net>
Assunto: Re: How can a stage decoration change?

In that case, I'm not sure. You'll have to look at all of the callers to this function and see how it is used.

-- Kevin


On 12/17/2019 9:05 AM, Thiago Milczarek Sayao wrote:
But there is no way managed JavaFx would know window manager decoration sizes to pass to setBounds().

Asking a more direct question. Why are xGravity and yGravity necessary?

Thanks.
________________________________
De: openjfx-dev <openjfx-dev-bounces at openjdk.java.net><mailto:openjfx-dev-bounces at openjdk.java.net> em nome de Kevin Rushforth <kevin.rushforth at oracle.com><mailto:kevin.rushforth at oracle.com>
Enviado: terça-feira, 17 de dezembro de 2019 13:49
Para: openjfx-dev at openjdk.java.net<mailto:openjfx-dev at openjdk.java.net> <openjfx-dev at openjdk.java.net><mailto:openjfx-dev at openjdk.java.net>
Assunto: Re: How can a stage decoration change?

Taking a quick look, I'm not sure I believe that comment, but in any
case I don't think it's talking about changing from an undecorated Stage
to a decorated Stage. Rather, I think it means that when a decorated
Stage is created, the window might be initially created and then the
decorations added in a second step.

-- Kevin


On 12/17/2019 8:34 AM, Thiago Milczarek Sayao wrote:
> Hi.
>
> Window.setBounds() doc specifies:
>
>
> * Gravity values specify how to correct window location if only its size
> * changes (for example when stage decorations are added). User initiated
> * resizing should be ignored and must not influence window location through
> * this mechanism.
>
> How can I test this mechanism since initStyle() only works when before show() ?
>
> Cheers.




More information about the openjfx-dev mailing list