Closed
Bug 278484
Opened 20 years ago
Closed 20 years ago
Tree does not redraw after modifying tree with setCellText
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: goodwill.mozilla.bugzilla, Unassigned)
Details
Attachments
(1 file)
4.82 KB,
application/vnd.mozilla.xul+xml
|
Details |
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8a6) Gecko/20050111 I am not sure if its a bug since there preceious few piece of code out there that implement setCelText. I attaching an xul file in where youc an run two scenarios. On with teh problem and one where it works at the expense of reapllying the view schema to a tree. I do not know if this is by design.
Reporter | ||
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
note teh problem is on seamonkey release build 1.8a6 Will check if firefox has teh same problem.
Comment 3•20 years ago
|
||
<goodwill> can anyone confirm my observations for bug 278484 |<-- goodwill has left irc.mozilla.org (Quit: ....) <bz_gone> er... <bz_gone> don't trees allow you to batch stuff? <bz_gone> so you need to call invalidate() manually after changing stuff? <bz_gone> could be wrong... <timelyx> bz: they do I assume this is INVALID then. Reopen if bz's and timeless's thoughts were wrong (which I imagine they are not)
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Summary: Tree does nto redraw after modifying tree with setCellText → Tree does not redraw after modifying tree with setCellText
Comment 4•20 years ago
|
||
Correct, it is up to the view to tell the tree box object to repaint. Normal content and builder views do this automatically when their data changes. Note to reporter: it is unnecessary to write a dummy setter. The JavaScript engine will throw an exception if you try to set a readonly property.
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 5•20 years ago
|
||
This is mainly the problem with setCellText. the constructor/prototype code for was taken AS IS from the pageInfo.js and pageInfo.xul from 1.8a6. then I played around with code and notices that the view is being re-set when before setCellText again with the same constructor/prototype. and only reason I foudn that it fixes the refresh problem. P.S. I did not wite the dummy setter, its the same code as pageInfo.js.
Reporter | ||
Comment 6•20 years ago
|
||
I guess the main querstion for me here is: teh tree.view constructor was set in teh begining. Why do I need to reapply it before I do setCelltext?
Reporter | ||
Comment 7•20 years ago
|
||
Filed a documentation bug with a sample application: bug 278536
You need to log in
before you can comment on or make changes to this bug.
Description
•