Closed
Bug 1173624
Opened 9 years ago
Closed 9 years ago
Doorhanger buttons are not rounded on the bottom corners
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox41 affected, firefox42 fixed)
RESOLVED
FIXED
Firefox 42
People
(Reporter: liuche, Assigned: mhaigh, Mentored)
References
Details
(Whiteboard: [good next bug][lang=java])
Attachments
(5 files)
This needs a selector, probably.
Reporter | ||
Updated•9 years ago
|
Summary: Doorhanger buttons are not curved on the bottom → Doorhanger buttons are not rounded on the bottom corners
Reporter | ||
Comment 1•9 years ago
|
||
So this is a bit annoying, because we have 3 button corner states:
1) No rounded corners (non-last doorhanger)
2) One rounded bottom corner (one of two buttons in last doorhanger)
3) Both bottom corners rounded (sole button in last doorhanger)
This means we'll need to have three selectors for each button (positive, negative) and then set that dynamically.
Comment 2•9 years ago
|
||
It will still looks bad with multiple doorhangers when ScrollView is activated. If you scroll buttons, they will overwrite corners anyway. Same with top corners it buttons reach upper edge.
The only solution is somehow clip these corners, but Android doesn't have easy solution.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → mhaigh
Assignee | ||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8633550 -
Attachment description: 2015-07-14 17.19.50.png → Double button
Assignee | ||
Comment 5•9 years ago
|
||
Reporter | ||
Comment 6•9 years ago
|
||
How does this work with long doorhangers and scrolling?
e.g., in PB mode, with TP enabled:
hello.firefox.com, in Site Identity doorhanger
Also, one thing I was concerned about was doorhangers with two sets of buttons, where we don't want to round the middle buttons e.g.,
Save a login on a page (fb.com) with tracking protection enabled - Site Identity doorhanger will show two sets of doorhangers with buttons.
Flags: needinfo?(mhaigh)
Assignee | ||
Comment 7•9 years ago
|
||
Flags: needinfo?(mhaigh)
Assignee | ||
Comment 8•9 years ago
|
||
Assignee | ||
Comment 9•9 years ago
|
||
Slight change to the code from that try push - I've moved the rounded corner view from the doorhanger to the anchored_popup
Reporter | ||
Comment 10•9 years ago
|
||
Hm, I wonder if we could achieve this with less off-canvas bitmap drawing/perf hit by making 3 kinds of button selectors, with different bottomRight/bottomLeft radius, and then swapping them in. One tricky part is doing this for only the last-added doorhanger (and un-rounding the button corners of the previously-last doorhangers).
Buuuut this is much cleaner in that all the logic is in one confusing place, rather than dynamically changed, which is opening us up for bugs.
Assignee | ||
Comment 11•9 years ago
|
||
Assignee | ||
Comment 12•9 years ago
|
||
I'm cautious of over-engineering this - I don't think we have any stats on usage but my guess is that it's not a very commonly used piece of the UI, if I'm right then I think getting it done is better than getting it perfect. The multiple button selector option sounds complex and time consuming, despite it being a technically more correct way of doing it.
Anyway - patch incoming
Assignee | ||
Comment 13•9 years ago
|
||
Bug 1173624 - Doorhanger buttons are not rounded on the bottom corners; r?liuche
Attachment #8634015 -
Flags: review?(liuche)
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8634015 [details]
MozReview Request: Bug 1173624 - Doorhanger buttons are not rounded on the bottom corners; r?liuche
Changing to margaret to review as liuche isn't here atm
Attachment #8634015 -
Flags: review?(liuche) → review?(margaret.leibovic)
Comment 15•9 years ago
|
||
Comment on attachment 8634015 [details]
MozReview Request: Bug 1173624 - Doorhanger buttons are not rounded on the bottom corners; r?liuche
https://reviewboard.mozilla.org/r/13299/#review12003
I think it's good to think about performance/memory concerns, but I agree with mhaigh that this is secondary UI that isn't shown often, so the simplest solution is best. I like that this approach solves the problem without us worrying about different doorhanger/button configurations.
Attachment #8634015 -
Flags: review?(margaret.leibovic) → review+
Assignee | ||
Comment 16•9 years ago
|
||
url: https://hg.mozilla.org/integration/fx-team/rev/6d7cf984b4673fef529827565440cf6b30cd27ad
changeset: 6d7cf984b4673fef529827565440cf6b30cd27ad
user: Martyn Haigh <mhaigh@mozilla.org>
date: Tue Jul 14 18:11:49 2015 +0100
description:
Bug 1173624 - Doorhanger buttons are not rounded on the bottom corners r=margaret
Assignee | ||
Comment 17•9 years ago
|
||
url: https://hg.mozilla.org/integration/fx-team/rev/8b82cd6f0178faa46f7d6844a8af971663bb26bd
changeset: 8b82cd6f0178faa46f7d6844a8af971663bb26bd
user: Martyn Haigh <mhaigh@mozilla.org>
date: Thu Jul 16 11:47:33 2015 +0100
description:
Bug 1173624 - Adding back in incorrect removal of dependancy r=self
Comment 18•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6d7cf984b467
https://hg.mozilla.org/mozilla-central/rev/8b82cd6f0178
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•