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:
Anton Tarasov
2016-09-16 16:57:57 +03:00
parent c39b953ef5
commit 9d4ed9ac40
@@ -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;