fixed alignment lines note reaching the edge of canvas after zooming.

Signed-off-by: Lee Jian Yi David <ljydavid@soctf-imac-028.comp.nus.edu.sg>