New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 709964 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Task


Show other hotlists

Hotlists containing this issue:
Clingon-translate


Sign in to add a comment

Make the overlflow menu for the new translate infobar

Project Member Reported by martiw@chromium.org, Apr 10 2017

Issue description

Make the overlflow menu for the new translate compact infobar
The overflow menu need to be:
1. popup from the bottom
2. covers infobar's close button when shows up.
3. has a divider line
4. options can be dynamically changed

You can see what it's look like in this mock page:
https://bbergher.googleplex.com/specs/translate/clank/static/
(scroll down to see the 'Overflow Menu')
 
I'm confused here; what's triggering this?  What's it look like?
Cc: dfalcant...@chromium.org
You should also start linking to mocks so there's something for reviewers to compare against.

Comment 4 by martiw@chromium.org, Apr 11 2017

Description: Show this description

Comment 5 by martiw@chromium.org, Apr 11 2017

Sorry for the confusion.
The menu is triggered when clicking on the "3 dots" button on the new infobar.
I just added the mock links in the issue description.

Comment 6 by martiw@chromium.org, Apr 11 2017

Description: Show this description

Comment 7 by martiw@chromium.org, Apr 11 2017

Cc: goog...@chromium.org
Components: -UI>Browser>Translate UI>Browser>Language>Translate
Project Member

Comment 10 by bugdroid1@chromium.org, May 2 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9146de1595631f543f2388239efba1ed1362704a

commit 9146de1595631f543f2388239efba1ed1362704a
Author: martiw <martiw@chromium.org>
Date: Tue May 02 01:04:39 2017

Allow to use measured width in translate overflow menu
When showing the overflow menu, we should use measured width (by
setting fixedWidth to false) to make sure all items fit inside the
menu.
When showing the language menu (with 100+ languages), we should use the
hardcoded width (fixedWidth = true) so that it won't take a long time
to measure all item widths.

BUG= 709964 

Review-Url: https://codereview.chromium.org/2824083003
Cr-Commit-Position: refs/heads/master@{#468518}

[add] https://crrev.com/9146de1595631f543f2388239efba1ed1362704a/chrome/android/java/res/layout/translate_menu_item_checked.xml
[modify] https://crrev.com/9146de1595631f543f2388239efba1ed1362704a/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java
[modify] https://crrev.com/9146de1595631f543f2388239efba1ed1362704a/chrome/android/java/src/org/chromium/chrome/browser/infobar/translate/TranslateMenu.java
[modify] https://crrev.com/9146de1595631f543f2388239efba1ed1362704a/chrome/android/java/src/org/chromium/chrome/browser/infobar/translate/TranslateMenuHelper.java

Status: Fixed (was: Started)

Sign in to add a comment