Open Bug 376246 Opened 18 years ago Updated 2 years ago

Splitter don't work between grid columns

Categories

(Toolkit :: XUL Widgets, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: daniel, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

(deleted), application/vnd.mozilla.xul+xml
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.9a3pre) Gecko/20070226 In older versions (Firefox 2.0) one could use a splitter between grid columns to size the columns. This doesn't work anymore using the current trunk. Example: <grid> <columns> <column /> <splitter collapse="before" resizeafter="farthest"/> <column flex="1"/> </columns> <rows> <row> <label value="foo" /> <button label="bar" /> </row> </rows> </grid> Reproducible: Always Steps to Reproduce: 1. 2. 3.
Attached file Simple Testcase (deleted) —
Keywords: testcase
The row element is rendered on top of all other elements. This way, the splitter will not receive events. Simple testcase: <grid onmousedown="alert(event.target.nodeName)"> ...
Strange things happen. When using a <spacer> element it works. Even when setting -moz-binding in it's style attribute. <spacer style="-moz-binding:url(...)" /> When setting the same binding by class, it doesn't work and the object will be rendered behind the row. <spacer class="usersplitter" /> usersplitter { -moz-binding:url(...); } So the current workaround for me is to use a homemade splitter which will be referenced by an inline style binding.
Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.9a6pre) Gecko/20070612 It's getting worse. With the latest XULRunner the second column in the testcase is not shown anymore. Probably because the element between the <column> tags is interpreted as a column as well.
The last comment is an unrelated bug, but may be a regression from bug 382899 or 382746.
(In reply to comment #6) >The last comment is an unrelated bug, but may be a regression from bug 382899 >or 382746. Bug 382746 changed the behaviour in that area, yes.
Should I file a new bug from comment #5?
(In reply to comment #8) > Should I file a new bug from comment #5? When in doubt, it's much better to err on the side of filing a bug. Duping bugs is cheap, not knowing about bugs can be costly :)
Additional bugreport about the missing second column created. see bug 384874
Something similar happens to a splitter between listcol elements. See bug 387529
(In reply to comment #11) >Something similar happens to a splitter between listcol elements. See bug 387529 Listcols are basically column elements; bug 384874 should have fixed that too.
(In reply to comment #12) > bug 384874 should have fixed that too. Not really. Using the latest XULRunner nightly bug 384874 seems of course beeing fixed. Additional (non "column") elements are visible again. However, the splitter doesn't work when placed between any columns in a grid or list.
I confirm this bug still exists in rv:1.9b2pre Gecko/2007121017 Minefield/3.0b2pre. Both, on test case provided here, and on my own grid.
Status: UNCONFIRMED → NEW
Ever confirmed: true
bug 268834 about ability to use splitter in listbox has been marked as wontifx. Since listbox implementation is based on grid then probably it makes sense to mention that bug here.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: