-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate Screen Breaks the layout #107
Comments
You should really provide more information. Screen shots, a simple code example, ... |
Just to check if this is a MigPane or MigLayout issue, what happens with the swing equivalent?
|
The swing equivalent is stable :) |
Any update about this issue ? :) |
Back from vacation. I've been able to reproduce your problem. Weird. I would expect problems in extend mode, but not here. Will have to play with that a bit. |
Okay, I've started to take a look. My first question is: if you're doing cell based layout, why are you using the "wrap" constraint? Wrap is intended for flow based layouts and wraps to a new row. If you're specifying the cell positions, wrap does not make sense? |
I found the cause, don't know a solution yet. In MigPane the screen's DPI is used to convert logical sizes to actual pixels, in duplicate mode JavaFX reports the DPI as 0, which causes a.o. the gap calculations to result in 0 gaps. In extended mode each screen has it's own DPI (in my setup 93 and 113) and the logic works correctly. MigLayout of course bases itself on the info JavaFX provides, so I don't know how to fix that. Using a default DPI of 96, in case 0 is returned, seems not correct either, but apparently that is often used . |
To be honest it is probably my misunderstanding of the library. It was the first time I use it ! :)
Thank you very much for your investigations ! |
Using 0 for the dpi seems more wrong than a decent default, so I've released MigLayout 11.4.1. Give that a try if you will. |
Hello and thank you very much for the library.
Lately I did a dev with it to place seats over the layout.
However, when my laptop is in "Duplicate Screen" mode, all the layout is broken. Those seats go on the top left corner.
Is there any way to fix that ?
Many thanks
The text was updated successfully, but these errors were encountered: