Closed
Bug 350332
Opened 19 years ago
Closed 19 years ago
Editable trees don't work in chrome windows
Categories
(Core :: XUL, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: asqueella, Assigned: janv)
References
Details
(Keywords: testcase)
Attachments
(1 file)
599 bytes,
application/vnd.mozilla.xul+xml
|
Details |
STR:
1. Open the example from http://wiki.mozilla.org/XUL:Tree#Usage (quoted below) as a chrome document.
2. Double click on the "joe@somewhere.com" cell.
Actual results:
No textbox appears to edit the contents of the cell. (I believe it appears and instantly disappears.) The tree is not focused (or at least the selected row is painted with the selected-not-focused color).
Expected results:
Textbox appears in place of the cell.
It is weird, but when the document is opened without chrome privileges, inline editing basically works.
Tested with trunk build pulled sometime yesterday.
Reporter | ||
Comment 1•19 years ago
|
||
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="yourwindow" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<tree editable="true" flex="1">
<treecols>
<treecol id="sender" label="Sender" flex="1"/>
<treecol id="subject" label="Subject" flex="2"/>
</treecols>
<treechildren>
<treeitem>
<treerow>
<treecell label="joe@somewhere.com"/>
<treecell label="Top secret plans" editable="false"/>
</treerow>
</treeitem>
</treechildren>
</tree>
</window>
Reporter | ||
Comment 2•19 years ago
|
||
This appears to be caused by the same reason as bug 350350 - http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/content/widgets/tree.xml&rev=1.37&mark=408#400 handling text selection, in this case, initial.
Reporter | ||
Comment 3•19 years ago
|
||
*** Bug 350350 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 4•19 years ago
|
||
Verified with a Windows build I just made. Yay, thanks.
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: xptoolkit.trees → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•