Fix resizing way after scrollbar enabling