Skip to content

Commit

Permalink
CHE-3578: set focus on the terminal after resizing (eclipse-che#3654)
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeriy Svydenko committed Jan 11, 2017
1 parent 83c5908 commit 0f5bf94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ public void setTerminalSize(int x, int y) {

if (width == x && height == y) {
return;
} else if (width > 0 && height > 0) {
//if it's not first initialization
setFocus(true);
}

terminal.resize(x, y);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public void openTerminal(@NotNull final TerminalJso terminal) {
terminalPanel.getElement().getStyle().setProperty("opacity", "0");

terminal.open(terminalPanel.getElement());
resizeTerminal();

terminalPanel.getElement().getFirstChildElement().getStyle().clearProperty("backgroundColor");
terminalPanel.getElement().getFirstChildElement().getStyle().clearProperty("color");
Expand Down

0 comments on commit 0f5bf94

Please sign in to comment.