Closed
Bug 192175
Opened 23 years ago
Closed 23 years ago
in trees, in a treecol with persist="sortActive" doesn't work in appropiate manner
Categories
(Core :: XUL, defect, P3)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla1.4alpha
People
(Reporter: afatecha, Assigned: janv)
Details
Attachments
(3 files, 1 obsolete file)
|
997 bytes,
text/plain
|
Details | |
|
1.47 KB,
application/vnd.mozilla.xul+xml
|
Details | |
|
1.91 KB,
patch
|
janv
:
review+
jag+mozilla
:
superreview+
asa
:
approval1.3-
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
persist="sortActive" would keep the value of an attribute sortActive in the
treecol, and that does it. The problem is just 1 (one) column can has the
attribute sortActive="true" in the same time (that has sense), and tag's parent
would see and change it (but doesn't occur).
in fact, sortActive need the same treatment as sortDirection attribute.
now, if a tree has 1 treecols and 2 treecol inside the last, I couldn't have a
persist="sortActive" in both treecol and no sortActive attribute, because
persist nothing.
I couldn't have persist="sortActive" in both and a sortActive="true" inside
one treecol (suppose the first column), because when my last click was in the
second persist nothing (reasonable).
I couldn't have persist="sortActive" and sortActive="true" in both, because
don't work, reasonable: just one treecol can take the sortActive attribute.
In the browser, people write code which takes around the problem.("circunda el
problema": if you know spanish).
If one person want to have always the same column with sortActive="true", just
has write it in one treecol (in xul) and don't persist="sortActive".
the file "nsXULTreeBuilder.cpp" does the work, in ::Sort.
So I have a proposed patch, and a testcase.
Reproducible: Always
Steps to Reproduce:
1.open the testcase
2.try previous lines I wrote
Actual Results:
don't good persist and sort.
Expected Results:
persist the last column clicked like default for sort.
the patch consist in add, in Sort's method (inside
content/xul/templates/src/nsXULTreeBuilder.cpp), treatment for sortActive
attribute in the same manner it's doing with sortDirection attribute.
in a second, I will post my attachments.
.dif it's the proposed patch.
[english lenguage is hard to me, sorry]
| Reporter | ||
Comment 1•23 years ago
|
||
it's for treeTestCase.xul
| Reporter | ||
Comment 2•23 years ago
|
||
it's for make easy testing
| Reporter | ||
Comment 3•23 years ago
|
||
proposed path in diff.
over:content/xul/templates/src/nsXULTreeBuilder.cpp
Comment 4•23 years ago
|
||
So... why did you cc me? I don't do XUL and I particularly don't do trees....
| Reporter | ||
Comment 5•23 years ago
|
||
I did know that XUL isn't your field, but in the two previous bugs that I
reported you seemed to be one of the few who actually read them and did
something about them.
Comment 6•23 years ago
|
||
Comment on attachment 113744 [details] [diff] [review]
proposed patch in diff
Yeah.... that just means I actually read my bugmail.
If you could attach this as a diff -u (much more readable) that would be good.
;)
Attachment #113744 -
Flags: superreview?(jaggernaut)
Attachment #113744 -
Flags: review?(varga)
Comment 7•23 years ago
|
||
Make that -u10, actually. Patches with no context are very hard to review...
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Reporter | ||
Comment 8•23 years ago
|
||
Attachment #113744 -
Attachment is obsolete: true
| Reporter | ||
Comment 9•23 years ago
|
||
looks better, you 're right, thanks
Updated•23 years ago
|
Attachment #113744 -
Flags: superreview?(jaggernaut)
Attachment #113744 -
Flags: review?(varga)
Updated•23 years ago
|
Attachment #113801 -
Flags: superreview?(jaggernaut)
Attachment #113801 -
Flags: review?(varga)
| Assignee | ||
Comment 10•23 years ago
|
||
Comment on attachment 113801 [details] [diff] [review]
with diff -u10
looks good
r=varga
Attachment #113801 -
Flags: review?(varga) → review+
Comment 11•23 years ago
|
||
Comment on attachment 113801 [details] [diff] [review]
with diff -u10
sr=jag
Attachment #113801 -
Flags: superreview?(jaggernaut) → superreview+
| Assignee | ||
Updated•23 years ago
|
Attachment #113801 -
Flags: approval1.3?
Comment 12•23 years ago
|
||
Does this impact the Mozilla suite? If not, then let's hold this until we open
for 1.4alpha (real soon now).
| Assignee | ||
Comment 13•23 years ago
|
||
It's not so important.
Moving to correct milestone.
Priority: -- → P3
Target Milestone: --- → mozilla1.4alpha
Updated•23 years ago
|
Attachment #113801 -
Flags: approval1.3? → approval1.3-
| Assignee | ||
Comment 14•23 years ago
|
||
checked in
thanks for this patch
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•