mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
[174313] Terminal View leaves empty, unscrolled space in the Terminal Widget
This commit is contained in:
parent
d413ab6732
commit
1eb0ab68c2
1 changed files with 0 additions and 8 deletions
|
@ -1799,7 +1799,6 @@ public class TerminalText implements Runnable, ControlListener {
|
||||||
|
|
||||||
Point textLocation = text.getLocation();
|
Point textLocation = text.getLocation();
|
||||||
textLocation.y += verticalPixelsToShrink;
|
textLocation.y += verticalPixelsToShrink;
|
||||||
textLocation.x += horizontalPixelsToShrink;
|
|
||||||
text.setLocation(textLocation);
|
text.setLocation(textLocation);
|
||||||
|
|
||||||
// Restore this class instance as the ControlListener on the StyledText
|
// Restore this class instance as the ControlListener on the StyledText
|
||||||
|
@ -1807,13 +1806,6 @@ public class TerminalText implements Runnable, ControlListener {
|
||||||
|
|
||||||
text.addControlListener(this);
|
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.
|
// Scroll the StyledText widget to the bottommost position.
|
||||||
|
|
||||||
text.setSelectionRange(text.getCharCount(), 0);
|
text.setSelectionRange(text.getCharCount(), 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue