See #22
See #22

There are still cases that canvas doesn't resize correctly but I can't
find a pattern to reproduce the bug.

serenayl/DesignExplorer,MingboPeng/DesignExplorer,tt-acm/DesignExplorer,serenayl/DesignExplorer,MingboPeng/DesignExplorer,tt-acm/DesignExplorer