Skip to content

Commit f1f2f8e

Browse files
committed
Lowering minimum size for Editor text area.
This should make it possible to shrink the overall IDE window without losing the scroll bars on the text pane. http://code.google.com/p/arduino/issues/detail?id=52
1 parent 04c9bb2 commit f1f2f8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/processing/app/syntax/TextAreaPainter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,10 @@ public Dimension getPreferredSize()
515515
*/
516516
public Dimension getMinimumSize()
517517
{
518-
return getPreferredSize();
518+
Dimension dim = new Dimension();
519+
dim.width = fm.charWidth('w') * 10;
520+
dim.height = fm.getHeight() * 4;
521+
return dim;
519522
}
520523

521524
// package-private members

0 commit comments

Comments
 (0)