Skip to content

Commit

Permalink
Demo: scale miglayout insets (PR #19)
Browse files Browse the repository at this point in the history
  • Loading branch information
DJ-Raven committed Nov 7, 2024
1 parent 9ab418b commit 5a895b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/src/main/java/raven/modal/demo/forms/FormSlidePane.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.formdev.flatlaf.FlatClientProperties;
import com.formdev.flatlaf.ui.FlatUIUtils;
import com.formdev.flatlaf.util.UIScale;
import net.miginfocom.layout.PlatformDefaults;
import net.miginfocom.swing.MigLayout;
import raven.extras.SlidePane;
Expand Down Expand Up @@ -173,7 +174,7 @@ private Insets getMiglayoutDefaultInsets() {
int left = (int) PlatformDefaults.getPanelInsets(1).getValue();
int bottom = (int) PlatformDefaults.getPanelInsets(2).getValue();
int right = (int) PlatformDefaults.getPanelInsets(3).getValue();
return new Insets(top, left, bottom, right);
return UIScale.scale(new Insets(top, left, bottom, right));
}

private SlidePaneTransition.Type getTransition() {
Expand Down

0 comments on commit 5a895b7

Please sign in to comment.