| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,8 +53,11 @@ public class VariableInspector extends JDialog { | |||
| 53 | 53 | ||
| 54 | 54 | // The tray will be placed at this amount from the top of the editor window, | |
| 55 | 55 | // 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; | ||
| 58 | 61 | ||
| 59 | 62 | /// the root node (invisible) | |
| 60 | 63 | protected DefaultMutableTreeNode rootNode; | |
@@ -255,6 +258,7 @@ Container createScrollPane() { | |||
| 255 | 258 | ||
| 256 | 259 | // Remove ugly (and unused) focus border on OS X | |
| 257 | 260 | scrollPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); | |
| 261 | + scrollPane.setPreferredSize(new Dimension(DEFAULT_WIDTH, DEFAULT_HEIGHT)); | ||
| 258 | 262 | return scrollPane; | |
| 259 | 263 | } | |
| 260 | 264 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments