Don't resize terminal if we don't receive a resize control (e.g. onAttach)

- Fix text selection in terminal (was our force focus stuff, introduced
  if you clicked on the black border that was not actually the terminal
This commit is contained in:
Simon Howe
2016-11-03 10:24:38 +01:00
parent 487635cb62
commit d3878cc8df
2 changed files with 7 additions and 12 deletions

View File

@@ -253,7 +253,7 @@ export function doControlRequest(nodeId, control, dispatch) {
}
export function doResizePipe(pipeId, control, cols, rows) {
export function doResizeTty(pipeId, control, cols, rows) {
const url = `api/control/${encodeURIComponent(control.probeId)}/`
+ `${encodeURIComponent(control.nodeId)}/${control.id}`;