命令リファレンス
$screenHeight

ウィンドウの縦幅(高さ)を返します。

$window.sizeableの値が1の場合、$screenHeightに値を代入することにより ウィンドウの幅が変わります。