Fixed a bug where triggering the autosize event immediately after assigning autosize had no effect.