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)

defect
Not set
normal
Points:
1

Tracking

()

RESOLVED FIXED
Firefox 35
Iteration:
35.3
Tracking Status
firefox34 --- fixed
firefox35 --- affected

People

(Reporter: aryx, Assigned: Gijs)

References

Details

Attachments

(2 files, 2 obsolete files)

Attached image screenshot of issue
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).
When I add arbitrary text to the en-US labels in DOMI, they wrap for me on OS X as well as Windows 8.
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
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 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-
The 32 is in reference to the icon's height. I've added a comment to clarify.
Attachment #8497376 - Flags: review?(jaws)
Attachment #8497144 - Attachment is obsolete: true
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+
Iteration: 35.2 → 35.3
Attached patch Patch for Aurora (folds in ) (obsolete) — Splinter Review
Comment on attachment 8497742 [details] [diff] [review] Patch for Aurora (folds in ) Sigh @ bzexport
Attachment #8497742 - Attachment is obsolete: true
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.

Attachment

General

Created:
Updated:
Size: