18 years ago
10 years ago


(Reporter: cmessenger, Unassigned)


Windows NT

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [xul1.0-layout-grid])


(2 attachments)



18 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.6) Gecko/20011120
BuildID:    2001112009

If I make a 2-column grid, and want the items in the first column to be
right-aligned, the following should work (according to David Hyatt):

        <column pack="end"/>
            <description value="cat"/>
            <description value="C"/>
            <description value="elephant"/>
            <description value="E"/>
            <description value="fish"/>
            <description value="F"/>

It doesn't work.

Comment 1

18 years ago
This is a full .xul file demonstrating the problem

Comment 2

18 years ago
Yep, that should have caused the cells in column one to stop stretching and to
right align.
Ever confirmed: true


18 years ago
Blocks: 70753
Whiteboard: [xul1.0-layout-grid]

Comment 3

18 years ago
Actually I think this should be align="end" on the column now that I think about
it.  That doesn't work either though, right?

Comment 4

18 years ago
Correct -- align="end" didn't work either.
Comment on attachment 60529 [details]
Shows grid alignment not working

Changing mimetype of testcase to XUL Mimetype
Attachment #60529 - Attachment mime type: text/plain → application/vnd.mozilla.xul+xml


18 years ago
Keywords: mozilla1.0+

Comment 6

18 years ago
Moving non nsbeta1+ XUL 1.0 bugs to mozilla1.2
Target Milestone: --- → mozilla1.2


18 years ago
No longer blocks: 70753


18 years ago
Keywords: mozilla1.0+mozilla1.0-
Assignee: eric → hyatt
Component: Layout → XP Toolkit/Widgets: XUL
QA Contact: petersen → shrir

Comment 8

15 years ago
This bug is about align="stretch" not stretching so that a column can have a
maxheight with a scrollbar unless user stretches the window and then the column
should stretch too until the scrollbars are not needed anymore. If window is
made smaller part of the scrollbar disappears too.

If I delete maxheight the scrollbar never appears when the windows becomes

I have also reported align bug with a button label, it only worked when the
<label> was written out explicitly.

And yes I can confirm this grid align bug too with ff 1.0.1.

I had similar but somewhat different problems with mozilla too but did not test
with the latest version.

Comment 9

14 years ago
I may be missing something essential here, but the attachment 60529 [details] looks
completely off target to me.
The DOM created by this XUL markup creates the view by laying out *rows* - so to
achieve a specific column width each of the rows elements has to have a specific
width, thus align="end" doesn't make any sense because each element in the first
column has (to have) the same width!
If align="end" should have any impact on such grid columns like here, it should
have to create special cell elements that inherit such aligned and have the
description elements used here as children, maybe by XBL.

Actually, I'd consider the bug as filed to be invalid with regard to the way XUL
FYI, what I have noticed is that align only works on the parent of the element,
whether that be the row or the column, while pack does not work at all.

It would be more useful for align to work both on the row and the column, as you
tend to want to align a column of (say) numbers to the right, while most people
find they want to align rows centrally (which at least already works).


11 years ago
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets


10 years ago
Assignee: hyatt → nobody
You need to log in before you can comment on or make changes to this bug.