Closed Bug 1050857 Opened 12 years ago Closed 12 years ago

Options panel layout doesn't work well with translated text

Categories

(DevTools :: Framework, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 34

People

(Reporter: bgrins, Assigned: bgrins)

References

Details

Attachments

(2 files, 3 obsolete files)

Attached image devtoolsprefs.png (obsolete) —
We have some issues with the options panel UI, especially when the labels are translated - see screenshot. Comment from the mailing list - https://groups.google.com/forum/#!topic/mozilla.dev.developer-tools/6YA1cEQN7WQ: I must say that it's been really hard to make a good translation to Spanish for the preferences in devtools*. We're having problems with "labels", as they are only one line height, and are causing "overflow" with other contents even though we've shortened the words to the maximum extent. Here you have the following screenshot** for more details. I've also noticed that the distribution is weird for low resolution, as the preferences are distributed in three floating block, when a browser has a small width and the first block is higher than the second one. | 1 | 2 | -----| 3 |
In order to wrap, looks like we will need to switch from a value attribute to text node on the <label>s: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/label#Wrapping
(In reply to Brian Grinstead [:bgrins] from comment #1) > In order to wrap, looks like we will need to switch from a value attribute > to text node on the <label>s: > https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/label#Wrapping If you want to wrap, use a <description>, if you want to crop, use <label value="">.
Attached patch options-panel-ui-WIP.patch (obsolete) — — Splinter Review
Fernando, are you able to apply this patch and check to see if it improves things?
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Attachment #8470146 - Flags: feedback?(striptm)
The change of <label value="foo" /> by <label>foo</label> is fantastic, our long label now appear in 2 lines. Now we would have to solve the defaultColorUnitMenuList, is also very wide and overflows (I add screenshot) [english] Default color unit | Color Names [es-ES] Unidad de color por defecto | Nombres de colores [fr] Unité par défaut pour les couleurs | noms de couleurs
Attached image devtoolsprefs2.png (obsolete) —
Comment on attachment 8470392 [details] devtoolsprefs2.png Applied options-panel-ui-WIP.patch
Attachment #8470146 - Flags: feedback?(striptm) → feedback+
(In reply to Paul Rouget [:paul] (slow to respond. Ping me on IRC) from comment #2) > (In reply to Brian Grinstead [:bgrins] from comment #1) > > In order to wrap, looks like we will need to switch from a value attribute > > to text node on the <label>s: > > https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/label#Wrapping > > If you want to wrap, use a <description>, if you want to crop, use <label > value="">. It looks like we can still use <label>foo</label> instead of <description>foo</description> and get the same effect. Comparing https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/label#Wrapping and https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/description it seems like they have the same properties with wrapping (don't wrap with value="", do wrap with text content).
Can you give this a try? I switched the <hbox> wrapper for the three menulist options to a <description>, which allows wrapping
Attachment #8470146 - Attachment is obsolete: true
Attachment #8470822 - Flags: feedback?(striptm)
Attached image devtoolsprefs3.png —
Attachment #8470131 - Attachment is obsolete: true
Attachment #8470392 - Attachment is obsolete: true
Great, the new patch has definitely solved the problem.
Attachment #8470822 - Flags: feedback?(striptm) → feedback+
Attachment #8470822 - Flags: review?(mratcliffe)
Attachment #8470822 - Flags: review?(mratcliffe) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 34
Flags: qe-verify-
Depends on: 1098431
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: