fix height in adjustCanvas()