FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

nicer initial size for inspector · drakh/processing@dcc9051 · GitHub

Repository navigation

Commit dcc9051

Browse files
committed
nicer initial size for inspector
1 parent c68bd13 commit dcc9051

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎java/src/processing/mode/java/VariableInspector.java‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ public class VariableInspector extends JDialog {
5353

5454
// The tray will be placed at this amount from the top of the editor window,
5555
// and extend to this amount from the bottom of the editor window.
56-
final int VERTICAL_OFFSET = 64;
57-
final int HORIZONTAL_OFFSET = 16;
56+
static final int VERTICAL_OFFSET = 64;
57+
static final int HORIZONTAL_OFFSET = 16;
58+
59+
static final int DEFAULT_WIDTH = 300;
60+
static final int DEFAULT_HEIGHT = 400;
5861

5962
/// the root node (invisible)
6063
protected DefaultMutableTreeNode rootNode;
@@ -255,6 +258,7 @@ Container createScrollPane() {
255258

256259
// Remove ugly (and unused) focus border on OS X
257260
scrollPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
261+
scrollPane.setPreferredSize(new Dimension(DEFAULT_WIDTH, DEFAULT_HEIGHT));
258262
return scrollPane;
259263
}
260264

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL