Closed
Bug 116484
Opened 24 years ago
Closed 23 years ago
column picker in outliner: I have to click twice to show / hide columns
Categories
(SeaMonkey :: MailNews: Message Display, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: sspitzer, Assigned: neil)
References
Details
Attachments
(1 file, 4 obsolete files)
|
5.50 KB,
patch
|
sspitzer
:
review+
sspitzer
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
column picker in outliner: I have to click twice to show / hide columns
I'm seeing this in mail. try to hide or show the columns using the column
pickers.
sometimes, you have to click on the column name twice.
might be related to #116341
| Assignee | ||
Comment 1•24 years ago
|
||
Bug 116341 has bitrotted the patch I made for this, so you'll have to wait.
Assignee: hewitt → neil
| Assignee | ||
Comment 2•24 years ago
|
||
*** Bug 120416 has been marked as a duplicate of this bug. ***
i see this in build 2002012306 (linux).
but i have to click an undetermined amount of times rapidly.
twice does NOT work. for some reason this is only on my machine config at work.
at home i don't see this (nor a host of other probs with prefs not sticking).
Comment 6•23 years ago
|
||
I see this to in News. It seams to be easier to AVOID it if you make sure you
stay still for around 2 seconds over your choice before you click on it, but I'm
not sure.
I'm using a CVS build from 2002-01-25-15 taken from the 0.9.8 branch.
Comment 7•23 years ago
|
||
*** Bug 118973 has been marked as a duplicate of this bug. ***
Comment 8•23 years ago
|
||
Note to QA: When checking this bug also go to the Address Book window to see if
its Column Picker is also fixed.
Comment 9•23 years ago
|
||
Comment on attachment 65009 [details] [diff] [review]
Possible patch (A)
comments to the patch:
- why we have to use getElementsByTagName ?
- I thought we prefer remoceAttribute("hidden"), not setAttribute("hidden",
"false")
| Assignee | ||
Comment 10•23 years ago
|
||
- why we have to use getElementsByTagName ?
We don't have to use getElementsByTagName but the point was that only
outlinercol elements go in the menu, not splitters or pickers. Is
getElementsByTagName more expensive then a loop and test in JS?
- I thought we prefer removeAttribute("hidden"), not setAttribute("hidden", "false")
Doesn't persist. Used History recently? Try showing some of the hidden columns
while closing and opening the window a few times...
Comment 11•23 years ago
|
||
ok, forget removeAttribute(), but I still think getElementsByTagName() is less
efficient in this case.
| Assignee | ||
Comment 12•23 years ago
|
||
Comment 13•23 years ago
|
||
Neil, I'm having problems with applying of your latest patch.
| Assignee | ||
Comment 14•23 years ago
|
||
Attachment #67881 -
Attachment is obsolete: true
Comment 15•23 years ago
|
||
Comment on attachment 67908 [details] [diff] [review]
bitrot
r=varga
Attachment #67908 -
Flags: review+
Comment 16•23 years ago
|
||
*** Bug 127679 has been marked as a duplicate of this bug. ***
| Reporter | ||
Comment 17•23 years ago
|
||
testing this patch, it causes us to assert when you click on the column picker.
###!!! ASSERTION: getElementById(""), fix caller?: '!aId.IsEmpty()', file c:\bui
lds\bridge\mozilla\content\xul\document\src\nsXULDocument.cpp, line 3572
| Reporter | ||
Comment 18•23 years ago
|
||
adding an
if (!colid)
return;
to the "command" event handler fixes that, but perhaps it's a problem that our
original target has no colid, or that the this code gets fired when you click
on the outliner picker.
| Reporter | ||
Comment 19•23 years ago
|
||
nomination for nsbeta1, since we have (almost) have a patch and this affects
the users experience.
Comment 20•23 years ago
|
||
if (!colid)
return;
Seems reasonable to me.
| Assignee | ||
Comment 21•23 years ago
|
||
Attachment #67908 -
Attachment is obsolete: true
Comment 22•23 years ago
|
||
Comment on attachment 71691 [details] [diff] [review]
Put everything in command handler to avoid assertion
>+ // we no longer cache the picker content.
>+ // remove the old content
>+ while (aPopup.hasChildNodes())
>+ aPopup.removeChild(aPopup.firstChild);
what about aPopup.removeChild(aPopup.lastChild);
it should be faster, since it doesn't have to move elements internally
>- while (currCol) {
>- while (currCol && currCol.localName != "outlinercol")
>- currCol = currCol.nextSibling;
>-
>- if (currCol && (currCol != this)) {
>- // Construct an entry for each cell in the row, unless
>- // it is not being show
>- if (!currCol.hasAttribute("ignoreincolumnpicker")) {
>+ var columns = this.parentNode.childNodes;
>+ for (var i = 0; i < columns.length; i++) {
>+ // Construct an entry for each column in the row, unless
>+ // it is not being shown
>+ var currCol = columns[i];
>+ if (currCol.localName == "outlinercol" && !currCol.hasAttribute("ignoreincolumnpicker")) {
I like original while loop.
e.g.
var currCol = this.parentNode.firstChild;
while (currCol) {
...
currCol = currCol.nextSibling;
}
Sorry for the nits.
Other than that r=varga
Attachment #71691 -
Flags: review+
| Assignee | ||
Comment 23•23 years ago
|
||
Attachment #65009 -
Attachment is obsolete: true
Attachment #71691 -
Attachment is obsolete: true
| Reporter | ||
Comment 24•23 years ago
|
||
Comment on attachment 71915 [details] [diff] [review]
Address Jan's nits
r=varga, sr=sspitzer
thanks for fixing this, neil.
Attachment #71915 -
Flags: superreview+
Attachment #71915 -
Flags: review+
| Assignee | ||
Updated•23 years ago
|
Target Milestone: --- → mozilla0.9.9
Updated•23 years ago
|
Attachment #71915 -
Flags: approval+
Comment 25•23 years ago
|
||
Comment on attachment 71915 [details] [diff] [review]
Address Jan's nits
a=asa (on behalf of drivers) for checkin to 0.9.9 and the mozilla trunk.
Comment 26•23 years ago
|
||
Neil, have you asked someone to check it in to the branch and trunk ?
If no, I can take care of it.
Comment 27•23 years ago
|
||
I'll be checking in the fix later today for Neil
Comment 28•23 years ago
|
||
Checked in on the trunk and branch.
Thanks Neil.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 29•23 years ago
|
||
Works fine with 2002-03-05-11 on Linux. VERIFIED.
Status: RESOLVED → VERIFIED
Comment 30•23 years ago
|
||
Great!!
Comment 31•23 years ago
|
||
*** Bug 129040 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•