Skip to content

Commit

Permalink
Lowering minimum size for Editor text area.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
damellis committed Mar 11, 2012
1 parent 04c9bb2 commit f1f2f8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/processing/app/syntax/TextAreaPainter.java
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,10 @@ public Dimension getPreferredSize()
*/
public Dimension getMinimumSize()
{
return getPreferredSize();
Dimension dim = new Dimension();
dim.width = fm.charWidth('w') * 10;
dim.height = fm.getHeight() * 4;
return dim;
}

// package-private members
Expand Down

0 comments on commit f1f2f8e

Please sign in to comment.