Improve resizing in table