diff --git a/CHANGELOG.md b/CHANGELOG.md index bdd9edab4..20d164edc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -65,6 +65,7 @@ All notable changes to this project will be documented in this file. - [#2462] AS3 debugger - incorrect line info injected - [#2464] SVG export - minimum stroke width of 1 px - [#2405] Incorrect saving tags after Cloning / Copy-pasting +- [#1646] Scrolling in Error log frame inside log texts ## [23.0.1] - 2025-05-16 ### Fixed @@ -3864,6 +3865,7 @@ Major version of SWF to XML export changed to 2. [#2462]: https://www.free-decompiler.com/flash/issues/2462 [#2464]: https://www.free-decompiler.com/flash/issues/2464 [#2405]: https://www.free-decompiler.com/flash/issues/2405 +[#1646]: https://www.free-decompiler.com/flash/issues/1646 [#2427]: https://www.free-decompiler.com/flash/issues/2427 [#1826]: https://www.free-decompiler.com/flash/issues/1826 [#2448]: https://www.free-decompiler.com/flash/issues/2448 diff --git a/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java b/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java index 4074b5fa3..467e42fff 100644 --- a/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java +++ b/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java @@ -337,12 +337,13 @@ public class ErrorLogFrame extends AppFrame { expandButton.setMargin(new Insets(2, 2, 2, 2)); expandButton.setToolTipText(translate("details")); - final JScrollPane scrollPane; + final JPanel detailPanel; if (detailComponent != null) { - scrollPane = new FasterScrollPane(detailComponent); - scrollPane.setAlignmentX(0f); + detailPanel = new JPanel(new BorderLayout()); + detailPanel.add(detailComponent, BorderLayout.CENTER); + detailPanel.setAlignmentX(0f); } else { - scrollPane = null; + detailPanel = null; } if (detailComponent != null) { @@ -350,7 +351,7 @@ public class ErrorLogFrame extends AppFrame { @Override public void actionPerformed(ActionEvent e) { expandButton.setIcon(expandButton.isSelected() ? expandIcon : collapseIcon); - scrollPane.setVisible(expandButton.isSelected()); + detailPanel.setVisible(expandButton.isSelected()); revalidate(); repaint(); } @@ -380,8 +381,8 @@ public class ErrorLogFrame extends AppFrame { header.add(copyButton); pan.add(header); if (detailComponent != null) { - pan.add(scrollPane); - scrollPane.setVisible(false); + pan.add(detailPanel); + detailPanel.setVisible(false); } pan.setAlignmentX(0f); if (logViewInner != null) { //may be disposed or what? #1904