I think you should be able to use resizeToWrapper here. I think a hard coded height is going to cause problems. Have you tested this in places with narrow or a lot of width, like gchat or reddit?