I think the window object should allow you to retrieve the "client" width/height of the window. Currently it will give you the size including the border and titlebar, instead of just the inside. Basically a feature like the "ClientX" expression which will get the X position of the window minus the border and titlebar.