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)
DevTools
Framework
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 34
People
(Reporter: bgrins, Assigned: bgrins)
References
Details
Attachments
(2 files, 3 obsolete files)
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 |
| Assignee | ||
Comment 1•12 years ago
|
||
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
Comment 2•12 years ago
|
||
(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="">.
| Assignee | ||
Comment 3•12 years ago
|
||
Fernando, are you able to apply this patch and check to see if it improves things?
Comment 4•12 years ago
|
||
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
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Comment on attachment 8470392 [details]
devtoolsprefs2.png
Applied options-panel-ui-WIP.patch
Updated•12 years ago
|
Attachment #8470146 -
Flags: feedback?(striptm) → feedback+
| Assignee | ||
Comment 7•12 years ago
|
||
(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).
| Assignee | ||
Comment 8•12 years ago
|
||
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)
Comment 9•12 years ago
|
||
Attachment #8470131 -
Attachment is obsolete: true
Attachment #8470392 -
Attachment is obsolete: true
Comment 10•12 years ago
|
||
Great, the new patch has definitely solved the problem.
Updated•12 years ago
|
Attachment #8470822 -
Flags: feedback?(striptm) → feedback+
| Assignee | ||
Updated•12 years ago
|
Attachment #8470822 -
Flags: review?(mratcliffe)
Updated•12 years ago
|
Attachment #8470822 -
Flags: review?(mratcliffe) → review+
| Assignee | ||
Comment 11•12 years ago
|
||
Keywords: checkin-needed
| Assignee | ||
Comment 12•12 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Updated•12 years ago
|
Keywords: checkin-needed
Comment 13•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 34
Updated•12 years ago
|
Flags: qe-verify-
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•