mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
Merge pull request #6130 from facchinm/allow_resizing_console_to_zero
Allow setting low values as minimum console size
This commit is contained in:
commit
ad02e4940c
@ -103,9 +103,8 @@ public class EditorConsole extends JScrollPane {
|
||||
FontMetrics metrics = getFontMetrics(actualFont);
|
||||
int height = metrics.getAscent() + metrics.getDescent();
|
||||
int lines = PreferencesData.getInteger("console.lines");
|
||||
int sizeFudge = 6; //10; // unclear why this is necessary, but it is
|
||||
setPreferredSize(new Dimension(100, (height * lines) + sizeFudge));
|
||||
setMinimumSize(new Dimension(100, (height * 5) + sizeFudge));
|
||||
setPreferredSize(new Dimension(100, (height * lines)));
|
||||
setMinimumSize(new Dimension(100, (height * lines)));
|
||||
|
||||
EditorConsole.init(stdOutStyle, System.out, stdErrStyle, System.err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user