Fix TableViewDetailIconItem layout defect.
This CL fixes the layout defect of TableViewDetailIconItem, which causes an unsmooth animation when the labels' text are updated. The solution is to use AutoLayout constraints instead of calculating width of both labels during UIView.LayoutSubviews. It's hard to prove that the constraints are correct, but it works :D Screen shot: https://drive.google.com/open?id=1UJoZ81NXE0gPQab80cGBVQFOVHqh1BBm Bug: 927682 Change-Id: I516469c7bd1bcbdfeebd7d9ddfe492fa39cd28a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1554354 Commit-Queue: Yi Su <mrsuyi@chromium.org> Reviewed-by:Sergio Collazos <sczs@chromium.org> Cr-Commit-Position: refs/heads/master@{#648602}
Showing
Please register or sign in to comment