Browse code

Merge pull request #35631 from Microsoft/jjh/heightwidth

Windows: Fix width/height swap

Yong Tang authored on 2017/11/29 14:02:46
Showing 1 changed files
... ...
@@ -934,7 +934,7 @@ func (c *client) ResizeTerminal(_ context.Context, containerID, processID string
934 934
 		"width":     width,
935 935
 		"pid":       p.pid,
936 936
 	}).Debug("resizing")
937
-	return p.hcsProcess.ResizeConsole(uint16(height), uint16(width))
937
+	return p.hcsProcess.ResizeConsole(uint16(width), uint16(height))
938 938
 }
939 939
 
940 940
 func (c *client) CloseStdin(_ context.Context, containerID, processID string) error {