1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

[174313] Terminal View leaves empty, unscrolled space in the Terminal Widget

This commit is contained in:
Michael Scharf 2007-04-10 22:31:08 +00:00
parent d413ab6732
commit 1eb0ab68c2

View file

@ -1799,7 +1799,6 @@ public class TerminalText implements Runnable, ControlListener {
Point textLocation = text.getLocation();
textLocation.y += verticalPixelsToShrink;
textLocation.x += horizontalPixelsToShrink;
text.setLocation(textLocation);
// Restore this class instance as the ControlListener on the StyledText
@ -1807,13 +1806,6 @@ public class TerminalText implements Runnable, ControlListener {
text.addControlListener(this);
// Make sure the exposed portion of the Composite canvas behind the
// StyledText control matches the background color of the StyledText
// control.
Color textBackground = text.getBackground();
text.getParent().setBackground(textBackground);
// Scroll the StyledText widget to the bottommost position.
text.setSelectionRange(text.getCharCount(), 0);