miglayout
miglayout copied to clipboard
A workaround for JavaFX DPI can (and should) probably be removed
The following line should not be present anymore, since the bug has been resolved in the version 8u20 of Java. I did not test this but this line most probably breaks HiDPI compatibility for MigLayout in JavaFX.
https://github.com/mikaelgrev/miglayout/blob/4a7c86769e6e9afe4ee1b5799c8038e73352d0c9/javafx/src/main/java/org/tbee/javafx/scene/layout/MigPane.java#L36
Totally agree! It is a patch with quite an impact, influencing other layout managers using DPI as well! Didn't know it was in there. (May explain why my ResponsiveLayout behaves strangely sometimes.)
I’m all for removing it. Also note the return of static 96 DPI at the end of the file, which also might be something to fix at the sam time? Important to put info in changes.
These static 96 should also be removed imo.
https://github.com/mikaelgrev/miglayout/blob/4a7c86769e6e9afe4ee1b5799c8038e73352d0c9/javafx/src/main/java/org/tbee/javafx/scene/layout/MigPane.java#L947
https://github.com/mikaelgrev/miglayout/blob/4a7c86769e6e9afe4ee1b5799c8038e73352d0c9/javafx/src/main/java/org/tbee/javafx/scene/layout/MigPane.java#L956
Removed the code, but one test is not running so it stays in 5.3-SNAPSHOT for now