Gallery: Takes into account target canvas size when calculating view port.
Gallery applies viewport both screen size cache, and full resolution image. To handle the different size of two images, it used to set CSS 'width' and 'height' style to the full resolution image so that the full resolution image can be regarded as the same size of screen cache image. But ImageView.Effect class, which is used for playing edit animation, does not update the CSS properties. It causes wrong layout during the edit animation. The CL removes the trick of CSS property, and let ImageView.Effect take into account of the size of target canvas. BUG=487129 TEST=Do and undo cropping and rotaiton. Review URL: https://codereview.chromium.org/1138053003 Cr-Commit-Position: refs/heads/master@{#329793}
Showing
This diff is collapsed.
Please register or sign in to comment