DescriptionGallery: 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.
Committed: https://crrev.com/171777f7e0ef8be56f2c60fe7e62dd2480bc7fd3
Cr-Commit-Position: refs/heads/master@{#329793}
Patch Set 1 #
Total comments: 16
Patch Set 2 : Addressed comments. #
Total comments: 4
Patch Set 3 : Fix. #
Messages
Total messages: 12 (3 generated)
|