Closed
Bug 117954
Opened 24 years ago
Closed 23 years ago
Auto-close springloaded folders except the destination folder
Categories
(Core :: XUL, enhancement)
Core
XUL
Tracking
()
VERIFIED
FIXED
mozilla1.4alpha
People
(Reporter: mythdraug, Assigned: janv)
References
Details
(Whiteboard: [adt2])
Attachments
(1 file, 6 obsolete files)
|
19.81 KB,
patch
|
bryner
:
review+
dmosedale
:
superreview+
|
Details | Diff | Splinter Review |
While cleaning up my inbox. I found muself wishing that after
releasing messages into a folder the tree that had sprung open
would close itself.
eg.
Before:
v-Inbox
|-Sent
|-Trash
>-Personal
>-Work
During:
v-Inbox
|-Sent
|-Trash
>-Personal
v-Work
| v-Staff
| | |-Foo
| | |-Bar
| | +-Jones
| >-Support
>-Personal
After:
v-Inbox
|-Sent
|-Trash
>-Personal
>-Work
Updated•24 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 1•24 years ago
|
||
.
Assignee: hyatt → mpt
Component: XP Toolkit/Widgets → User Interface Design
QA Contact: jrgm → zach
Target Milestone: --- → Future
Comment 2•24 years ago
|
||
I think it's better to leave the folder open. If you're dragging several items
into one folder, it would be annoying if you had to trigger the springload
feature multiple times. I don't use mozmail or bookmark manager often, though,
so I don't know whether that's more common than dragging a single item
somewhere and then forgetting about it.
| Reporter | ||
Comment 3•24 years ago
|
||
My personal behavior when cleanig my inbox is to first sort
by sender. Then I select all the messages from that sender
and drag them enmasse to the destination folder.
Keep in mind I'm not advocating closing all your folders,
just the ones that opened on mouseover.
Comment 4•24 years ago
|
||
I think that all the UI can do should be possibly undone by the UI.
CC'ing Jan Varga, since he has implemented this feature.
| Assignee | ||
Comment 5•24 years ago
|
||
Actually not me, but Dean has implemented this feature.
So, you want to be able close containers on mouseover (maybe with ctrl key?)
Or you want outliner to remember all auto opened containers and then close them
after drag session ends ?
| Assignee | ||
Comment 6•24 years ago
|
||
taking for now
Component: User Interface Design → XP Toolkit/Widgets: Trees
| Reporter | ||
Comment 7•24 years ago
|
||
I was thinking of the latter case. Remember all auto opened
containers and then close them after drag session ends
| Reporter | ||
Comment 8•24 years ago
|
||
*** Bug 128230 has been marked as a duplicate of this bug. ***
Comment 9•23 years ago
|
||
When you drop items in a sprung-open folder, that folder should *not* close by
itself -- both for the reasons given in comment 2, and because that's how native
spring-loaded folders work.
However, *during* the drag, sprung-open folders which you mouse out of should
spring closed again.
--> default owner
Assignee: mpt → hewitt
QA Contact: zach → shrir
Summary: [RFE] autoclose springloaded folders → Auto-close springloaded folders except the destination folder
*** Bug 170605 has been marked as a duplicate of this bug. ***
*** Bug 169102 has been marked as a duplicate of this bug. ***
Comment 13•23 years ago
|
||
nsbeta1+/adt2 per the nav triage team.
| Assignee | ||
Comment 15•23 years ago
|
||
This patch implements desired behaviour (I hope).
I had to add a new member variable |nsVoidArray mArray| which takes 8 bytes at
minimum.
This array stores indexes of spring loaded folders.
Is there a better solution ?
Comment 16•23 years ago
|
||
I don't think this should be changed on Windows. Following the example of
Windows Explorer springloaded folders remain open regardless of whether
something is dropped on them.
Comment 17•23 years ago
|
||
cc Patrice for UE input
Comment 18•23 years ago
|
||
I agree with comments #2 and #16. Users might not know/see in which folders
their mail went if the spring loaded folders close automatically. cc Jennifer
for input.
| Assignee | ||
Comment 19•23 years ago
|
||
>Users might not know/see in which folders their mail went if the spring loaded
folders close automatically
They don't close all automatically, drop folder stays opened.
Comment 20•23 years ago
|
||
It could be odd for users to suddenly see their folders close and the folder
pane (for mail) 'jump' as it re-adjusts itself, without them actually having
done something to cause this. Its hard to say without actually seeing it.
The folders that were opened in the hierarchy to where the item was actually
dropped would stay open though, correct? So just folders the user might have
hovered over too long or opened in error (nope, not the folder i want...) would
get closed?
| Assignee | ||
Comment 21•23 years ago
|
||
>its hard to say without actually seeing it.
I attached a patch to this bug which implements this behaviour.
Maybe Seth could apply it and show you how it works.
>The folders that were opened in the hierarchy to where the item was actually
>dropped would stay open though, correct? So just folders the user might have
>hovered over too long or opened in error (nope, not the folder i want...) would
>get closed?
Right, all automatically opened folders except the drop folder get closed.
I checked the Finder on Mac OS X and it works this way too.
| Assignee | ||
Updated•23 years ago
|
Target Milestone: Future → mozilla1.4alpha
| Assignee | ||
Comment 22•23 years ago
|
||
this patch does the same as the previous one and additionally:
- closes folders after a delay, not immediately (after 1 sec at the moment)
- up/down autoscrolling is now dynamic, you can scroll up faster if you move
the mouse cursor higher and visa versa
Attachment #105634 -
Attachment is obsolete: true
| Assignee | ||
Comment 23•23 years ago
|
||
I forgot to check all parent indexes in the hierarchy.
| Assignee | ||
Updated•23 years ago
|
Attachment #114879 -
Attachment is obsolete: true
Comment 24•23 years ago
|
||
Comment on attachment 114880 [details] [diff] [review]
better one
This should not be the behavior on Windows.
| Assignee | ||
Comment 25•23 years ago
|
||
jag, what do you think ?
| Assignee | ||
Comment 26•23 years ago
|
||
Sigh, idle timers.
This one should work on windows too.
Attachment #114880 -
Attachment is obsolete: true
| Assignee | ||
Updated•23 years ago
|
Attachment #114885 -
Flags: superreview?(jaggernaut)
Attachment #114885 -
Flags: review?(bryner)
Comment 27•23 years ago
|
||
Comment on attachment 114885 [details] [diff] [review]
another one
Maybe it would be better to use nsValueArray, so you don't have to cast back
and forth to pointer types?
| Assignee | ||
Comment 28•23 years ago
|
||
Attachment #114885 -
Attachment is obsolete: true
| Assignee | ||
Updated•23 years ago
|
Attachment #114885 -
Flags: superreview?(jaggernaut)
Attachment #114885 -
Flags: review?(bryner)
| Assignee | ||
Updated•23 years ago
|
Attachment #116611 -
Flags: superreview?(jaggernaut)
Attachment #116611 -
Flags: review?(bryner)
Comment 29•23 years ago
|
||
Comment on attachment 116611 [details] [diff] [review]
revised patch
Where's the #ifndef XP_WIN?
| Assignee | ||
Comment 30•23 years ago
|
||
Dean, why not on windows ?
Just because "it's not the behaviour on windows", we behave differently in other
places too, so why not ?
Is it your personal feeling or is it really bad from usability point of view ?
Comment 31•23 years ago
|
||
The place where people most like experience springloaded folders on Windows is
in Explorer. We should behave like that. Just because "we're different
elsewhere" doesn't mean we should be different if we can avoid it.
| Reporter | ||
Comment 32•23 years ago
|
||
While the final behavior has changed from my initial request, I would
still like to see this on Windows.
Comment 33•23 years ago
|
||
I think we should mimic the platform behaviour. Windows (w2k) seems to keep all
sprung-open folders open, Mac OS X only keeps the one open you dropped into and
closes the ones you dragged over (except for the NeXT parallel columns view, it
acts like Windows for that case). What do Gnome and KDE specify for this (if
anything)? If no behaviour is specified, I would go with the Mac (not NeXT)
behaviour.
| Assignee | ||
Comment 34•23 years ago
|
||
mkaply, do you want this behavior on OS/2 ?
what would be the #ifdef then ?
| Assignee | ||
Comment 35•23 years ago
|
||
Dean, jag, thanks for your comments
Personally I don't care about windows behavior that much.
I just don't like additional #ifdefs in this code which make it less readable.
| Reporter | ||
Comment 36•23 years ago
|
||
I know I won't win any popularity votes by suggesting this...
But could this be pref'd with appropriate default settings for
the various platforms rather than a compile-time #ifdef?
Comment 37•23 years ago
|
||
We wouldn't want this springloading on OS/2.
| Assignee | ||
Comment 38•23 years ago
|
||
mkaply, you don't want spring loaded folders on OS/2 at all ?
This bug is about auto-closing of spring-loaded folders
Comment 39•23 years ago
|
||
Sorry, this bug confused me. If by spring loading, you mean open when you drag,
heck yeah we want that.
Auto closing we don't want. That would be way confusing to the user.
Comment 40•23 years ago
|
||
Jan, if you don't want to ifdef the code you could either use nsILookAndFeel or
platform-specific default prefs.
| Assignee | ||
Comment 41•23 years ago
|
||
Comment on attachment 116611 [details] [diff] [review]
revised patch
working on a patch that uses the nsILookAndFeel service
Attachment #116611 -
Attachment is obsolete: true
Attachment #116611 -
Flags: superreview?(jaggernaut)
Attachment #116611 -
Flags: review?(bryner)
| Assignee | ||
Comment 42•23 years ago
|
||
ok, so I changed all the code to use the nsILookAndFeel service.
I added these new metrics:
ui.treeOpenDelay = 1000
ui.treeCloseDelay = 1000
ui.treeLazyScrollDelay = 150
ui.treeScrollDelay = 100
ui.treeScrollLinesMax = 3
ui.treeCloseDelay is set to zero on Windows and OS/2, so auto closing is
completly disabled on these platforms.
I haven't checked if there are any platform specific APIs for such settings.
I think that's not important at the moment.
The cool thing about the nsILookAndFeel service is the ability to even override
these settings in prefs.js
Hope this is the last patch for this bug, I want to check it in finally.
| Assignee | ||
Updated•23 years ago
|
Attachment #117142 -
Flags: superreview?(jaggernaut)
Attachment #117142 -
Flags: review?(bryner)
| Assignee | ||
Comment 43•23 years ago
|
||
Attachment #117142 -
Attachment is obsolete: true
| Assignee | ||
Updated•23 years ago
|
Attachment #117142 -
Flags: superreview?(jaggernaut)
Attachment #117142 -
Flags: review?(bryner)
| Assignee | ||
Updated•23 years ago
|
Attachment #117218 -
Flags: superreview?(jaggernaut)
Attachment #117218 -
Flags: review?(bryner)
Updated•23 years ago
|
Attachment #117218 -
Flags: review?(bryner) → review+
Comment 44•23 years ago
|
||
Thanks, Jan, this looks a lot better to me.
Comment 45•23 years ago
|
||
Comment on attachment 117218 [details] [diff] [review]
cosmetic changes
sr=dmose
Attachment #117218 -
Flags: superreview?(jaggernaut) → superreview+
| Assignee | ||
Comment 46•23 years ago
|
||
checked in
FYI, if you want to enable it on Windows, add this to your pref.js:
user_pref("ui.treeCloseDelay", 1000);
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 47•23 years ago
|
||
*** Bug 199146 has been marked as a duplicate of this bug. ***
Comment 48•23 years ago
|
||
this has been working fine for me using recent builds, so marking verified.
Status: RESOLVED → VERIFIED
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
•