Avoid invisible rows/columns for mouse resizing