命令リファレンス
$screenWidth

ウィンドウの幅を返します。

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