mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-156648 Tree view is compacted in 2016.2 EAP
"prevScale" is used to normalize ui defaults values patched on the previous update cycle with the previous scale factor. On the first update cycle "prevScale" should be set to 1.0 as it corresponds to the scale of the ui defaults not yet patched.
This commit is contained in:
@@ -531,7 +531,8 @@ public final class LafManagerImpl extends LafManager implements ApplicationCompo
|
||||
|
||||
private static void patchHiDPI(UIDefaults defaults) {
|
||||
Object prevScaleVal = defaults.get("hidpi.scaleFactor");
|
||||
float prevScale = prevScaleVal != null ? (Float)prevScaleVal : JBUI.scale(1f);
|
||||
// used to normalize previously patched values
|
||||
float prevScale = prevScaleVal != null ? (Float)prevScaleVal : 1f;
|
||||
|
||||
if (prevScale == JBUI.scale(1f) && prevScaleVal != null) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user