From 515dfbeedd830034dacee99a47bc127661b7e064 Mon Sep 17 00:00:00 2001 From: chewiebug Date: Mon, 10 Jun 2019 18:37:36 +0200 Subject: [PATCH] #216 add Yanqi Li to the list of contributors --- pom.xml | 4 ++++ .../java/com/tagtraum/perf/gcviewer/view/AboutDialog.java | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b9ed17db..52561aa8 100644 --- a/pom.xml +++ b/pom.xml @@ -67,6 +67,10 @@ Roland Illig https://github.com/rillig + + Yanqi Li + https://github.com/yanqilee + Johan Kaving diff --git a/src/main/java/com/tagtraum/perf/gcviewer/view/AboutDialog.java b/src/main/java/com/tagtraum/perf/gcviewer/view/AboutDialog.java index a026b032..f747d10f 100644 --- a/src/main/java/com/tagtraum/perf/gcviewer/view/AboutDialog.java +++ b/src/main/java/com/tagtraum/perf/gcviewer/view/AboutDialog.java @@ -51,6 +51,7 @@ public class AboutDialog extends ScreenCenteredDialog implements ActionListener "Roland Illig", "Johan Kaving", "Maciej Kwiecien", + "Yanqi Li", "Henry Lin", "James Livingston", "Mart Mägi", @@ -170,7 +171,7 @@ private Dimension calculatePreferredSize(JLabel labelWithHtmlText, boolean width width ? 0 : preferredSize); float w = view.getPreferredSpan(View.X_AXIS); - float h = view.getPreferredSpan(View.Y_AXIS); + float h = view.getPreferredSpan(View.Y_AXIS) * (float)1.1; // add 10% to compensate for high dpi screens with jdk 11 return new Dimension((int) Math.ceil(w), (int) Math.ceil(h));