Resizable: account for padding & border in grids.

Fixes #10437