Commit for canvas resizing on mouse release

Change-Id: I87aae45d9630293aeabdada7a8c32db83c44216c