Skip to content

Commit

Permalink
Pull request #682: [ROCKSOLID-10013] Add code to set the preferred si…
Browse files Browse the repository at this point in the history
…ze of the templateScrollPane to the templatePanel contents

Merge in MC/connect from bugfix/ROCKSOLID-10013-code-template-editor-window-not-scrolling to development

* commit '7a9d1a13762766fe4ed1f2e478ada817b1683777':
  [ROCKSOLID-10013] Add code to set the preferred size of the templateScrollPane to the templatePanel contents
  • Loading branch information
jdonextgen authored and lmillergithub committed Jun 30, 2023
2 parents 63ca8c0 + 7a9d1a1 commit 3ec2902
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -12,6 +12,7 @@
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
Expand Down Expand Up @@ -1736,6 +1737,7 @@ public boolean include(Entry<? extends TableModel, ? extends Integer> entry) {

templateScrollPane = new JScrollPane(templatePanel);
templateScrollPane.setBorder(null);
templateScrollPane.setPreferredSize(new Dimension(templatePanel.getWidth(), templatePanel.getHeight()));

templateLeftPanel = new JPanel();
templateLeftPanel.setBackground(templatePanel.getBackground());
Expand Down

0 comments on commit 3ec2902

Please sign in to comment.