Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/148685)
4 years, 2 months ago
(2016-09-27 03:30:09 UTC)
#9
FWIW, I am experimenting with a centralized approach for showing popup menus (see https://codereview.chromium.org/2373793003). That ...
4 years, 2 months ago
(2016-09-28 00:13:35 UTC)
#12
FWIW, I am experimenting with a centralized approach for showing popup menus
(see https://codereview.chromium.org/2373793003). That approach works well so
far, and if
we decide to adopt it, the work in this CL (2375493003) will be thrown away.
The last thing I am figuring out is how to test a popup menu under the new
centralized
mechanism, since it breaks existing tests. Given that the new approach has a big
potential
benefit (performance, 1 menu template for N list item rows), I think it is
better to hold
up this fix, until we have a clear idea of our 2 options (let's call them
ListItemBehavior vs PopupMenuManager).
https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resource...
File chrome/browser/resources/settings/list_item_behavior.js (right):
https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resource...
chrome/browser/resources/settings/list_item_behavior.js:14: showActionMenu:
function() {
On 2016/09/27 at 23:02:04, Dan Beam wrote:
> this really doesn't show any action menu. it really just ensures this item is
on top? can we rename it to something closer to what it's currently doing and
rename it later if it needs to be more generic?
Renamed.
https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resource...
chrome/browser/resources/settings/list_item_behavior.js:22: };
On 2016/09/27 at 23:02:04, Dan Beam wrote:
> can we make this static and private?
>
> ListItemBehavior.maxZIndex_ = 0;
Already responded to Steven's similar question. Tried this and it did not work
as expected (the counter is not unique among behavior instances).
Dan Beam
https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resources/settings/list_item_behavior.js File chrome/browser/resources/settings/list_item_behavior.js (right): https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resources/settings/list_item_behavior.js#newcode22 chrome/browser/resources/settings/list_item_behavior.js:22: }; On 2016/09/28 00:13:35, dpapad wrote: > On 2016/09/27 ...
4 years, 2 months ago
(2016-09-28 01:32:07 UTC)
#13
https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resource...
File chrome/browser/resources/settings/list_item_behavior.js (right):
https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resource...
chrome/browser/resources/settings/list_item_behavior.js:22: };
On 2016/09/28 00:13:35, dpapad wrote:
> On 2016/09/27 at 23:02:04, Dan Beam wrote:
> > can we make this static and private?
> >
> > ListItemBehavior.maxZIndex_ = 0;
>
> Already responded to Steven's similar question. Tried this and it did not work
> as expected (the counter is not unique among behavior instances).
I can see how this would look a little confusing. What I meant was:
/** @polymerBehavior */
var ListItemBehavior = {
ensureOnTop: function() {
this.style.zIndex = ++ListItemBehavior.maxZIndex_;
},
};
/** @private {number} */
ListItemBehavior.maxZIndex_ = 0;
where there's only 1, globally static max z-index.
Dan Beam
On 2016/09/28 00:13:35, dpapad wrote: > FWIW, I am experimenting with a centralized approach for ...
4 years, 2 months ago
(2016-09-28 01:33:21 UTC)
#14
On 2016/09/28 00:13:35, dpapad wrote:
> FWIW, I am experimenting with a centralized approach for showing popup menus
> (see https://codereview.chromium.org/2373793003). That approach works well so
> far, and if
> we decide to adopt it, the work in this CL (2375493003) will be thrown away.
>
> The last thing I am figuring out is how to test a popup menu under the new
> centralized
> mechanism, since it breaks existing tests. Given that the new approach has a
big
> potential
> benefit (performance, 1 menu template for N list item rows), I think it is
> better to hold
> up this fix, until we have a clear idea of our 2 options (let's call them
> ListItemBehavior vs PopupMenuManager).
do whatever you want here. if this fix results in less bugs, it's fine by me.
I can also deal with them for the next few days / week or however long it takes
you to investigate a shared-menu framework
Dan Beam
lgtm
4 years, 2 months ago
(2016-09-28 01:33:32 UTC)
#15
lgtm
dpapad
https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resources/settings/list_item_behavior.js File chrome/browser/resources/settings/list_item_behavior.js (right): https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resources/settings/list_item_behavior.js#newcode22 chrome/browser/resources/settings/list_item_behavior.js:22: }; On 2016/09/28 at 01:32:07, Dan Beam wrote: > ...
4 years, 2 months ago
(2016-09-28 01:50:32 UTC)
#16
https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resource...
File chrome/browser/resources/settings/list_item_behavior.js (right):
https://codereview.chromium.org/2375493003/diff/80001/chrome/browser/resource...
chrome/browser/resources/settings/list_item_behavior.js:22: };
On 2016/09/28 at 01:32:07, Dan Beam wrote:
> On 2016/09/28 00:13:35, dpapad wrote:
> > On 2016/09/27 at 23:02:04, Dan Beam wrote:
> > > can we make this static and private?
> > >
> > > ListItemBehavior.maxZIndex_ = 0;
> >
> > Already responded to Steven's similar question. Tried this and it did not
work
> > as expected (the counter is not unique among behavior instances).
>
> I can see how this would look a little confusing. What I meant was:
>
> /** @polymerBehavior */
> var ListItemBehavior = {
> ensureOnTop: function() {
> this.style.zIndex = ++ListItemBehavior.maxZIndex_;
> },
> };
>
> /** @private {number} */
> ListItemBehavior.maxZIndex_ = 0;
>
> where there's only 1, globally static max z-index.
Done. Thanks for the clarification. I misunderstood the original suggestion.
stevenjb
https://codereview.chromium.org/2375493003/diff/120001/chrome/browser/resources/settings/on_startup_page/startup_urls_page.html File chrome/browser/resources/settings/on_startup_page/startup_urls_page.html (right): https://codereview.chromium.org/2375493003/diff/120001/chrome/browser/resources/settings/on_startup_page/startup_urls_page.html#newcode24 chrome/browser/resources/settings/on_startup_page/startup_urls_page.html:24: } Is there a reason not to apply this ...
4 years, 2 months ago
(2016-10-13 16:49:52 UTC)
#17
Ugh, You know you can close these without deleting them :) Anyway, no worries, sgtm. ...
4 years, 2 months ago
(2016-10-13 18:56:04 UTC)
#19
Ugh, You know you can close these without deleting them :) Anyway, no
worries, sgtm.
On Thu, Oct 13, 2016 at 11:04 AM, dpapad@chromium.org via
codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com> wrote:
> On 2016/10/13 at 16:49:52, stevenjb wrote:
> >
> https://codereview.chromium.org/2375493003/diff/120001/
> chrome/browser/resources/settings/on_startup_page/startup_urls_page.html
> > File chrome/browser/resources/settings/on_startup_page/
> startup_urls_page.html
> (right):
> >
> >
> https://codereview.chromium.org/2375493003/diff/120001/
> chrome/browser/resources/settings/on_startup_page/startup_urls_page.html#
> newcode24
> >
chrome/browser/resources/settings/on_startup_page/startup_urls_page.html:24:
> }
> > Is there a reason not to apply this to all .scroll-container divs?
> >
> >
> https://codereview.chromium.org/2375493003/diff/120001/
> chrome/browser/resources/settings/search_engines_page/
> search_engines_list.html
> > File
> chrome/browser/resources/settings/search_engines_page/
> search_engines_list.html
> (right):
> >
> >
> https://codereview.chromium.org/2375493003/diff/120001/
> chrome/browser/resources/settings/search_engines_page/
> search_engines_list.html#newcode38
> >
> chrome/browser/resources/settings/search_engines_page/
> search_engines_list.html:38:
> }
> > Is it intentional that this is overflow-y and startup_urls_page is
> overflow?
>
> This CL is obsolete. The latest approach for fixing popup menus is in
> review at
> https://codereview.chromium.org/2402553002.
>
> https://codereview.chromium.org/2375493003/
>
--
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.
dpapad
Description was changed from ========== MD Settings: Fix rendering of popup menus inside iron-lists. BUG=639718 ...
4 years, 2 months ago
(2016-10-13 19:30:49 UTC)
#20
Description was changed from
==========
MD Settings: Fix rendering of popup menus inside iron-lists.
BUG=639718
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
MD Settings: Fix rendering of popup menus inside iron-lists.
BUG=639718
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
Issue 2375493003: MD Settings: Fix rendering of popup menus inside iron-lists.
(Closed)
Created 4 years, 2 months ago by dpapad
Modified 4 years, 2 months ago
Reviewers: stevenjb, Dan Beam
Base URL:
Comments: 14