Fix wrong height on some docker grids
BUG:407805 BUG:407809 BACKPORT:krita/4.2 (cherry picked from commit 54db93c14a3370fd37894f152a0dd4fcef3b4b0e)