Revert "Revert "window sizing.""

This reverts commit 92efe4661a7c0e60c85ec053c55d505b462f8973.