From 565fb8d30794cb85f6d458899d741fb7ba432fe4 Mon Sep 17 00:00:00 2001 From: ghidragon <106987263+ghidragon@users.noreply.github.com> Date: Wed, 13 Dec 2023 16:40:29 -0500 Subject: [PATCH] Adjusted ByteViewer Address field's preferred size and fixed tests --- .../ghidra/app/plugin/core/byteviewer/ByteViewerPanel.java | 3 ++- .../ghidra/app/plugin/core/clipboard/ClipboardPluginTest.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ByteViewerPanel.java b/Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ByteViewerPanel.java index 0d14d964e4..da7d22fc92 100644 --- a/Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ByteViewerPanel.java +++ b/Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ByteViewerPanel.java @@ -788,7 +788,8 @@ public class ByteViewerPanel extends JPanel implements LayoutModel, LayoutListen @Override public Dimension getPreferredViewSize() { - return new Dimension(500, 500); + // this is the preferred size of the address panel + return new Dimension(100, 500); } @Override diff --git a/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/app/plugin/core/clipboard/ClipboardPluginTest.java b/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/app/plugin/core/clipboard/ClipboardPluginTest.java index d4cd1d736c..3c2d61fe46 100644 --- a/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/app/plugin/core/clipboard/ClipboardPluginTest.java +++ b/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/app/plugin/core/clipboard/ClipboardPluginTest.java @@ -1613,12 +1613,12 @@ public class ClipboardPluginTest extends AbstractGhidraHeadedIntegrationTest { @Override public Point getStartMouseDragLocation() { - return new Point(100, 30); + return new Point(120, 30); } @Override public Point getEndMouseDragLocation() { - return new Point(300, 30); + return new Point(320, 30); } @Override