Closed
Bug 132682
Opened 23 years ago
Closed 23 years ago
Twisties aren't clickable in History Sidebar
Categories
(SeaMonkey :: Sidebar, defect)
SeaMonkey
Sidebar
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.0
People
(Reporter: cmaximus, Assigned: gregvalure)
References
Details
(Keywords: polish, regression)
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
janv
:
review+
alecf
:
superreview+
dbaron
:
approval+
|
Details | Diff | Splinter Review |
This bug is sprung from comments (comment#28) in bug 114142).
In the history sidebar the twisties(show/hide triangles) are unresponsive to
mouseclicks.
Clicking on them should cause the corresponding folder to open and close.
Instead this action can only be accomplished by clicking on the folder or
foldername itself.
All platforms with 20020320 builds
assinged to Ben since he made the "uniform sidebar behavior" changes.
*Note this behavior is inconsistent withtheother panels and is History panel only.
Comment 1•23 years ago
|
||
*** Bug 131468 has been marked as a duplicate of this bug. ***
Reporter | ||
Updated•23 years ago
|
Keywords: regression
Comment 2•23 years ago
|
||
*** Bug 135958 has been marked as a duplicate of this bug. ***
Comment 3•23 years ago
|
||
Still present in 20020409 Build (x86 Windows XP)
Comment 4•23 years ago
|
||
still there 2002041103 - x86 xppro
Comment 5•23 years ago
|
||
Why have arrows you can't click on, when in EVERY OTHER ARROW in every other
dialogue is clickable?
This badly needs a fixin'
Problem persists in windows 2000 build 2002041111 from latest 1.0.0 directory.
it *also* opens on a middle-button click!
The only thing that does NOT work is the expected behaviour: open on one left-click.
Comment 8•23 years ago
|
||
I would assume this would be a 30 second fix for someone familiar with XUL. Any
taker?
Found the fix! but I have ABSOLUTLY no idea why.
history.xul and history-panel.xul are very simular files except history.xul has
a file menu and multiple colums for dates ect which can be sorted. Anyways I
slowly turned history.xul into history-panel.xul untill everything was gone, and
it still worked, untill I got to the end of the page. the difference is that you
need to add
<statusbar id="status-bar" class="chromeclass-status">
<statusbarpanel id="statusbar-display" flex="1"/>
<statusbarpanel class="statusbarpanel-iconic" id="offline-status"/>
</statusbar>
to the end of (right before </page> ) history-panel.xul
WHY!!! this makes no sence.
Comment 10•23 years ago
|
||
Well. The patch solves it for me.
I don't know why, but it does.
The problem is that when the twistie is clicked, the item is automatically
expanded by some other code. So the actual onClick handler actually collapses
the item so it looks like it was never opened.
This patch could do evil things to other parts. I really don't know :)
Comment 11•23 years ago
|
||
john,
the reason your patch worked is because the javascript checks for the absense of
a status bar and only then it toggles the item.
By adding the status bar, you made it never toggle the item.
It's not a real solution though :)
Comment 12•23 years ago
|
||
Vadim, the real question is, is the proper fix somewhere on the lines of the
patch you summitted, or would it involve fixing the javascript that checks for
status, and makes it work anyways. You said "By adding the status bar, you made
it never toggle the item", but it appears the by adding the status bar it
toggles the item perfectly. But is bailing out of the toggle code when the
status bar isn't there.
Comment 13•23 years ago
|
||
You didn't read my original comment.
When the twistie is clicked, the item is toggled by /some other code/.
When the status bar is *not* present, the code *toggles* it again thus *closing
it* making it appear it was *never* open.
Comment 14•23 years ago
|
||
Ok feeling stupid, I was completly out to lunch when I read your patch. Anyways
your patch is in the right direction. Does it fix the double click problem too?
Comment 15•23 years ago
|
||
The main problem we are facing is that we could easily cludge this open, but
what really needs to happen is for a more centralized system for handling all
trees. Currently bookmarks handles the tree with one code (and pretty much
works) while history handles it with another code completly different. Anybody
care to globalize tree handling? That is more post 1.0 work. So would it be
possible for us to just do a temporary hack and either impliment my hack or
Vadim's hack both of which made the twisty work but also make it so you have to
double click (which is incorrect) and fix it in total later. Is there a bug for
centralizing reused js? :)
Assignee | ||
Comment 17•23 years ago
|
||
Oops. Try that again...
Assignee: ben → gregvalure
Status: ASSIGNED → NEW
Assignee | ||
Comment 18•23 years ago
|
||
The problem is that the historyOnClick hack toggles whether the folder is open
or not on a single click. However, twisties already toggle on a single click,
so it gets opened here and then closed again later on. It all happens before
the display is updated, so you don't see anything happen.
Checking if the clicked element is a twisty clears this up.
Attachment #79180 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Target Milestone: --- → mozilla1.0
Comment 19•23 years ago
|
||
Please note that the tree is also supposed to expand with a single click on the
title itself (including its icon) and not JUST the twisty.
Assignee | ||
Comment 20•23 years ago
|
||
Maybe I wasn't clear the first time. The patch doesn't remove the single click
behavior altogether, it just makes twisties work again.
There is a hack in the code that opens/closes a folder whenever the user clicks
anywhere, including on the twisty. So clicking on a twisty causes the hack to
open the folder, and the twisty's normal behavior closes it again, making it
look like nothing happened. The patch just excludes the twisty from the hack,
so we don't have this double effect. Note that the extra condition is "&&
elt.value != "twisty"" and not "&& elt.value == "twisty"". The hack will still
toggle folders on a single click, but now the twisties work as expected.
Comment 21•23 years ago
|
||
I added a check for the left mouse button and also a check that you were
actually clicking in the body and not on the header (to sort) or the column
picker.
Attachment #79946 -
Attachment is obsolete: true
Comment 22•23 years ago
|
||
Comment on attachment 80343 [details] [diff] [review]
Extra checks
this looks right.. I definitely want a good xul/outliner person to be the r=
Attachment #80343 -
Flags: superreview+
Comment 23•23 years ago
|
||
Comment on attachment 80343 [details] [diff] [review]
Extra checks
r=varga
Attachment #80343 -
Flags: review+
Comment 24•23 years ago
|
||
Landed on the trunk.
Assignee | ||
Comment 25•23 years ago
|
||
Asked for drivers approval for 1.0 branch.
Comment 26•23 years ago
|
||
Comment on attachment 80343 [details] [diff] [review]
Extra checks
a=dbaron for 1.0 branch checkin
Attachment #80343 -
Flags: approval+
Comment 27•23 years ago
|
||
Landed on branch.
Comment 28•23 years ago
|
||
Claudius has agreed to verify this on the trunk and branch...
QA Contact: sujay → claudius
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•