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

Issue 2049523005: Fix DropdownPopupWindow's position in Android N. (Closed)

Created:
4 years, 6 months ago by hush (inactive)
Modified:
4 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix DropdownPopupWindow's position in Android N. In Android N, the framework will read view.getLeft() and view.getTop() to determine where to put the drop down, and if the anchor view is not on screen, the parent view will be scrolled to make it on screen (by means of requestChildRectangleOnScreen). setLayoutParams() is not enough to change left and top values of the anchorView immediately. Show()ing the ListPopupWindow immediately after setLayoutParams() will show the popup window in the wrong location, and also cause the parent view to be improperly scrolled. Call postShow() to put show() after when the layout of the anchor view is changed. Initial selection has to be set after show() is actually called, because getListView() is null until the ListPopupWindow is shown. BUG=614746 Committed: https://crrev.com/87634341cb230c465a1d2c5cdb09f79c0a97bc08 Cr-Commit-Position: refs/heads/master@{#399274}

Patch Set 1 #

Patch Set 2 : fix with "postShow" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/input/SelectPopupDropdown.java View 1 3 chunks +7 lines, -6 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/DropdownPopupWindow.java View 1 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
hush (inactive)
PTAL
4 years, 6 months ago (2016-06-09 01:07:36 UTC) #3
hush (inactive)
4 years, 6 months ago (2016-06-09 01:40:52 UTC) #4
David Trainor- moved to gerrit
lgtm!
4 years, 6 months ago (2016-06-09 02:51:21 UTC) #5
boliu
On 2016/06/09 02:51:21, David Trainor wrote: > lgtm! we came up with maybe a better ...
4 years, 6 months ago (2016-06-09 02:53:28 UTC) #6
David Trainor- moved to gerrit
On 2016/06/09 02:53:28, boliu wrote: > On 2016/06/09 02:51:21, David Trainor wrote: > > lgtm! ...
4 years, 6 months ago (2016-06-09 02:56:16 UTC) #7
boliu
On 2016/06/09 02:56:16, David Trainor wrote: > On 2016/06/09 02:53:28, boliu wrote: > > On ...
4 years, 6 months ago (2016-06-10 01:34:49 UTC) #9
hush (inactive)
On 2016/06/10 01:34:49, boliu wrote: > On 2016/06/09 02:56:16, David Trainor wrote: > > On ...
4 years, 6 months ago (2016-06-10 18:47:43 UTC) #11
boliu
lgtm also explain why we need setInitialSelection
4 years, 6 months ago (2016-06-10 19:16:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049523005/20001
4 years, 6 months ago (2016-06-10 19:22:09 UTC) #17
boliu
On 2016/06/10 19:22:09, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 6 months ago (2016-06-10 19:24:54 UTC) #19
David Trainor- moved to gerrit
lgtm thanks!
4 years, 6 months ago (2016-06-10 21:27:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049523005/20001
4 years, 6 months ago (2016-06-10 21:29:31 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-10 21:35:50 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 21:36:20 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 21:37:16 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/87634341cb230c465a1d2c5cdb09f79c0a97bc08
Cr-Commit-Position: refs/heads/master@{#399274}

Powered by Google App Engine
This is Rietveld 408576698