Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Issue 2898633004: Layout the translate bubble after changing child view visibility. (Closed)

Created:
3 years, 7 months ago by tapted
Modified:
3 years, 7 months ago
Reviewers:
groby-ooo-7-16
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Layout the translate bubble after changing child view visibility. BoxLayout only manipulates visible subviews, so making a subview newly visible may require a layout. A SizeToContents() call can also trigger Layout() but only if the size of the Widget actually changes. r466211 removed some unnecessary insets such that this was no longer likely for a particular translate bubble UI transition. BUG=721213, 658854 TEST=(see bug) On Windows, set flags: - chrome://flags/#translate-2016q2-ui Disabled. - chrome://flags/#secondary-ui-md Enabled. Go to a page that needs translating and translate it. Ensure the "Show original" button is positioned in the bottom-right and clickable. Review-Url: https://codereview.chromium.org/2898633004 Cr-Commit-Position: refs/heads/master@{#474511} Committed: https://chromium.googlesource.com/chromium/src/+/bb91c5093e7b44830872d79d95d4c391c82776b8

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M chrome/browser/ui/views/translate/translate_bubble_view.cc View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 14 (9 generated)
tapted
Hiya groby, please take a look
3 years, 7 months ago (2017-05-23 06:34:13 UTC) #6
tapted
groby: ping?
3 years, 7 months ago (2017-05-24 22:59:20 UTC) #8
groby-ooo-7-16
lgtm
3 years, 7 months ago (2017-05-25 00:34:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2898633004/1
3 years, 7 months ago (2017-05-25 00:35:14 UTC) #11
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 01:32:02 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/bb91c5093e7b44830872d79d95d4...

Powered by Google App Engine
This is Rietveld 408576698