Bladeren bron

Merge pull request #35631 from Microsoft/jjh/heightwidth

Windows: Fix width/height swap
Yong Tang 7 jaren geleden
bovenliggende
commit
29708da907
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      libcontainerd/client_local_windows.go

+ 1 - 1
libcontainerd/client_local_windows.go

@@ -934,7 +934,7 @@ func (c *client) ResizeTerminal(_ context.Context, containerID, processID string
 		"width":     width,
 		"pid":       p.pid,
 	}).Debug("resizing")
-	return p.hcsProcess.ResizeConsole(uint16(height), uint16(width))
+	return p.hcsProcess.ResizeConsole(uint16(width), uint16(height))
 }
 
 func (c *client) CloseStdin(_ context.Context, containerID, processID string) error {