Open
Bug 187188
Opened 22 years ago
Updated 2 years ago
Cropped XUL label affects page width incorrectly
Categories
(Core :: XUL, defect)
Tracking
()
NEW
People
(Reporter: bugzilla-mozilla-20000923, Unassigned)
Details
Attachments
(1 file)
553 bytes,
application/vnd.mozilla.xul+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021224 Phoenix/0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021224 Phoenix/0.5
It seems that if you crop a label (using maxwidth attribute or max-width CSS
property), the overall content width is as if the label *wasn't* cropped, yet
most positioning is as if the label is cropped. The text always appears cropped.
Reproducible: Always
Steps to Reproduce:
I should come up with a simple text case, but until then look at bug 185111
(patch 3/4 mainly) - the label for the author of the theme will push the
"Uninstall" button way off the right of the pref dialog if the author is longer
than 190px, even though the author is displayed as cropped.
Comment 1•22 years ago
|
||
actually, this needs a testcase. (And do you really mean that you're a cropping
a <label/> ? [i.e., what does it mean to "crop" something that wraps text?]).
Reporter | ||
Comment 2•22 years ago
|
||
If you do <label value="something really long" maxwidth="100"/> for example, the
text is cropped - it won't wrap.
Comment 3•22 years ago
|
||
Thanks. In that case, the 'value' is not created as a child text element of the
label (as opposed to the case when you do <label>foo</label>).
Reporter | ||
Comment 4•22 years ago
|
||
If you open this window from Mozilla (e.g. using window.open("testcase1.xul",
"_blank", "chrome,resizable=yes")), you will see a red box enclosing a blue and
a yellow box (side-by-side). Inside the blue box is a label with value "This is
some very, very long text that doesn't wrap." and maxwidth 100. You can see it
truncate.
Now make the window norrower (horizontally). The red (and yellow) boxes don't
get smaller. What's holding them there?
Well, as far as I can see, it's the string in the cropped label - it's forcing
a width it shouldn't be.
Comment 5•21 years ago
|
||
As a workaround, <label crop="right"> gives you the effect you want.
Comment 6•21 years ago
|
||
Or you can use style="min-width: 1px;" overriding the uncropped min width.
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
Updated•15 years ago
|
Assignee: hyatt → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•