Closed
Bug 291841
Opened 19 years ago
Closed 14 years ago
XForms controls can't lay out like a table
Categories
(Core Graveyard :: XForms, defect)
Tracking
(Not tracked)
People
(Reporter: aaronr, Assigned: doronr)
Details
Attachments
(4 files, 1 obsolete file)
Using CSS, it should be possible to layout an XForm like a table. However, when tried on Mozilla, NONE of the controls appear. Probably a limitation of these syles on XTF elements? Seems to be wreking havoc.
This testcase doesn't layout right in other xforms processors, either. Doron thinks that this is because IE doesn't support display:table But at least the other processors show the controls.
Comment 2•19 years ago
|
||
IE doesn't. We don't support on 'display' on HTML input types either. Actually, they make inputs do weird things, see bug 281357. There is basically no CSS specification that deals with form controls (which are some special kind of replaced elements last time I debated about it).
Comment 3•19 years ago
|
||
Probably this has got something to do with bug 266772, not?
Assignee | ||
Comment 4•19 years ago
|
||
Now that we moved to xbl widgets, is this fixed?
Comment 5•19 years ago
|
||
(In reply to comment #4) > Now that we moved to xbl widgets, is this fixed? Does not look good in current nightly, so no I guess.
Assignee | ||
Comment 6•19 years ago
|
||
tablelayout needs xbl created content it seems, and group doesn't have any.
Assignee | ||
Updated•19 years ago
|
Attachment #199822 -
Flags: review?(smaug)
Comment 7•19 years ago
|
||
Comment on attachment 199822 [details] [diff] [review] patch >+ >+ <implementation implements="nsIXFormsUIWidget"> >+ </implementation> Do you need <implementation> for anything?
Assignee | ||
Comment 8•19 years ago
|
||
actually, the implementation isn't needed it seems.
Comment 9•19 years ago
|
||
Comment on attachment 199822 [details] [diff] [review] patch Remove <implementation> and add class attribute to the html:div. In xforms.css set display:inherit; to that class. With those r=me.
Attachment #199822 -
Flags: review?(smaug) → review+
Assignee | ||
Comment 10•19 years ago
|
||
There is a problem with setting display:inherit; on the div - the testcase breaks. Removing the inherit fixes the issue, but removes the option of doing inline groups (well, you won't be able to style groups inline, but would have to do xf|group > html|div {display: inline}. Anyone else have an opinion? :)
Comment 11•19 years ago
|
||
If you have display:inherit; you could still make group to work like a table: xf|group > html|div {display: table}. ;)
No longer depends on: 266772
Assignee | ||
Comment 12•19 years ago
|
||
do we ened inline groups? :)
Assignee | ||
Comment 13•19 years ago
|
||
So currently, we have two options: A patch that allows group as a table, but that can't be inline (without css to style the anonymous content). or A patch that allows inline/block groups, but can't be a group (without ss to style the anonymous content) Note that you probably can simple not style the group a table but its children as table-rows and make this work with the inline/block option.
Assignee | ||
Comment 14•19 years ago
|
||
So we have two choices for 1.8 (1.9 will have inline-block that will probably help us). Any reactions? :)
Comment 15•18 years ago
|
||
Attachment #181790 -
Attachment is obsolete: true
Comment 16•18 years ago
|
||
The main problem is that XBL bindigns doesn't applied to elements that have 'table-row' or 'table-cell' display property. After bug 83830 will be fixed we need ensure testcases work. And if they work then we will mark this bug as dublicate of bug 83830.
Comment 17•14 years ago
|
||
(In reply to comment #1) > Created an attachment (id=181790) [details] > testcase > > This testcase doesn't layout right in other xforms processors, either. Aaron, can you explain what layout is right? In current version of xforms I can see controls.
Reporter | ||
Comment 18•14 years ago
|
||
When I tried the latest nightly with 3.6.3 it crashed, so I tried this testcase on 3.0.15. If what you are seeing is the same as what is in this bmp, then let me know and we can close this as worksforme. You'll have to modify the testcase slightly to add other inputs with variable length labels to make sure the table layout is correct. Thanks.
Comment 19•14 years ago
|
||
FF 3.6.3 with XForms from https://bugzilla.mozilla.org/attachment.cgi?id=437883
Reporter | ||
Comment 20•14 years ago
|
||
looks good, closing as duplicate of 83830 per Alex's comment.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•