FF and Chrome-compatible resizing of widget, for issue #1015