Base handling for grid resizing using mouse