Issue #278.

This issue occurs in Chrome. doLayout was getting called repeatedly, sometimes with a 50ms delay. Removing the extra doLayouts fixes the issue. It seems to re-size just fine without them.