wrong calculation when resizing canvas : FTDUEDTR-1317