Closed Bug 59347 Opened 26 years ago Closed 24 years ago

treecell content not indented

Categories

(Core :: XUL, defect)

defect
Not set
minor

Tracking

()

RESOLVED WONTFIX

People

(Reporter: hand, Assigned: chofmann)

References

Details

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) BuildID: 2000091312 When the value attribute is used with the treecell element, the generated text is indented. When content is provided explicitly on that element, the content is not indented. The behaviour should be changed for treecell so that it also indents explicit content. Reproducible: Always Steps to Reproduce: <treecell class="treecell-indent"> <text value="my value"/> </trecell> Actual Results: my value not indented Expected Results: my value indented This is likely a CSS + XBL problem. See news://news.mozilla.org/8u3j8k$ln81@secnews.netscape.com for more details.
Reporter is this still a problem in the latest nightlies?
This should not be closed because it is a XBL decision. Hyatt or jrgm, could you please give the final say on this question? Personally I would mark this wontfix, because if we start indenting content of a cell, we might as well do everything else. Let's leave that up to the coders' will. Adding qawanted keyw.
Keywords: qawanted
Me? Final word? Er, try hyatt :-] (but adding ben and bryner for comment). [I think, though, that it should be consistent as John suggests: that indent applies whether the cell has explicit children, or just a treecell value]. Here's John's original post, for reference. (I'll attach a simple test case in a moment, and maybe get back to this tomorrow or Monday again): The following gives the correct behaviour of indenting with twisties: <treecell class="treecell-indent" value="?name"/> The following doesn't give that behaviour: <treecell class="treecell-indent"> <text value="?name"/> </trecell> Arguably, the second should exhibit the same behaviour. I have traced this to the following XBL binding, but more may be involved: <binding id="treecell-indented-leaf"> <content autostretch="never"> <xul:treeindentation/> <xul:image class="tree-cell-primary-icon" inherits="src"/> <xul:text class="tree-cell-text" inherits="crop,value,align" flex="1" crop="right"/> </content> </binding> When I provide content, the content in the above binding will be discarded. This means that there is no twisty or indentation. For cases where there is content, the binding should be something like: <binding id="treecell-indented-leaf"> <content autostretch="never"> <xul:treeindentation/> <xul:image class="tree-cell-primary-icon" inherits="src"/> <children/> </content> </binding> which should indent user specified content. I feel this is the correct behaviour because I expect behaviours to be consistent regardless of whether elements have user specified content. I am not sure how to write XBL or CSS that can do both depending on whether content is provided. Does anyone have an idea? Thanks -John
Status: UNCONFIRMED → NEW
Ever confirmed: true
->Future, needs 62783 which is also for some other time
Depends on: 62783
Target Milestone: --- → Future
Ooh, good example of a use for 62783. I'm half-tempted to file a similar bug: <button> <text value="foo"/> </button> doesn't have the sexy round button borders, as if it were <button value="foo"/>. That would also need bug 62783. I won't file that, though, since there are probably a whole slew of this sort of thing.
i'll take this, since i actually *know* how to fix it...
Assignee: hyatt → dr
Status: NEW → ASSIGNED
No longer depends on: 62783
Blocks: 71046
Keywords: qawanted
Target Milestone: Future → mozilla0.9.1
Depends on: 72575
Severity: normal → minor
Priority: P3 → P2
Target Milestone: mozilla0.9.1 → mozilla0.9.2
->0.9.3 (not a netscape rtm stopper, per pdt)
Target Milestone: mozilla0.9.2 → mozilla0.9.3
xul cleansing -> mozilla1.0
Target Milestone: mozilla0.9.3 → mozilla1.0
[spam] xbl widget bugs -> future, until hyatt "finishes" anarchy online. These should probably dep on bug 82839...
Target Milestone: mozilla1.0 → Future
[spam] dr@netscape.com's bugs subject to redistribution by chofmann. R!
Assignee: dr → chofmann
Status: ASSIGNED → NEW
Priority: P2 → --
Target Milestone: Future → ---
treecell is no more
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: