Fixes a visual gap when resizing the table view