Fixed resizing bug, SCI-1556