Closed
Bug 1074498
Opened 10 years ago
Closed 10 years ago
Panic/Forget button: warning text above button should line-wrap
Categories
(Firefox :: Toolbars and Customization, defect)
Firefox
Toolbars and Customization
Tracking
()
People
(Reporter: aryx, Assigned: Gijs)
References
Details
Attachments
(2 files, 2 obsolete files)
35.59 KB,
image/png
|
Details | |
6.14 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
Firefox Nightly 20140929 on Windows 8.1
The Forget button in the customizable widgets button opens a sidebar where the labels of the items don't wrap. See screenshot of the issue with German work-in-progress translation (issue is here that 'Recent' requires a participle in German).
Assignee | ||
Comment 1•10 years ago
|
||
When I add arbitrary text to the en-US labels in DOMI, they wrap for me on OS X as well as Windows 8.
Assignee | ||
Comment 2•10 years ago
|
||
Clarified on IRC, this is because the warning text at the bottom doesn't wrap. Fixing.
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Iteration: --- → 35.2
Points: --- → 1
Flags: qe-verify-
Flags: in-testsuite-
Flags: firefox-backlog+
OS: Windows 8.1 → All
Hardware: x86_64 → All
Summary: Panic/Forget button: Sidebar items' labels should linewrap → Panic/Forget button: warning text above button should line-wrap
Assignee | ||
Comment 3•10 years ago
|
||
Also had to tweak the height fixup code so it worked in the menu panel (pre-patch version probably leaks the event listener...), then found out the hbox above the description doesn't size correctly (adding flex=1 there didn't help). :-(
Attachment #8497144 -
Flags: review?(jaws)
Comment 4•10 years ago
|
||
Comment on attachment 8497144 [details] [diff] [review]
some of the panic button panel's labels don't wrap,
Review of attachment 8497144 [details] [diff] [review]:
-----------------------------------------------------------------
r- for the hardcoding of 32, if my assumptions are correct.
::: browser/components/customizableui/CustomizableWidgets.jsm
@@ +1031,4 @@
> let win = aContainer.ownerDocument.defaultView;
> for (let item of variableHeightItems) {
> if (aSetHeights) {
> + let h = win.getComputedStyle(item, null).getPropertyValue("height");
s/h/height/ for better readability. Single letter variables other than counter-specific ones such as `i`/`j` should be expanded.
@@ +1036,5 @@
> + // In the main menu panel, need to set the height of the container of this
> + // description because otherwise the text will overflow:
> + if (item.id == "PanelUI-panic-mainDesc" &&
> + view.getAttribute("current") == "true" &&
> + parseInt(h) > 32) {
What significance does 32 have here? If 32 is used because it is based on a specific font-size, then we'll need a more robust solution here as it will break when people use larger or smaller font-sizes.
Attachment #8497144 -
Flags: review?(jaws) → review-
Assignee | ||
Comment 5•10 years ago
|
||
The 32 is in reference to the icon's height. I've added a comment to clarify.
Attachment #8497376 -
Flags: review?(jaws)
Assignee | ||
Updated•10 years ago
|
Attachment #8497144 -
Attachment is obsolete: true
Comment 6•10 years ago
|
||
Comment on attachment 8497376 [details] [diff] [review]
some of the panic button panel's labels don't wrap,
Review of attachment 8497376 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for the clarification.
Attachment #8497376 -
Flags: review?(jaws) → review+
Updated•10 years ago
|
Iteration: 35.2 → 35.3
Assignee | ||
Comment 7•10 years ago
|
||
Assignee | ||
Comment 8•10 years ago
|
||
Assignee | ||
Comment 9•10 years ago
|
||
Comment on attachment 8497742 [details] [diff] [review]
Patch for Aurora (folds in )
Sigh @ bzexport
Attachment #8497742 -
Attachment is obsolete: true
Assignee | ||
Comment 10•10 years ago
|
||
status-firefox34:
--- → fixed
status-firefox35:
--- → affected
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
You need to log in
before you can comment on or make changes to this bug.
Description
•