grid: fix canvas height definition