Closed
Bug 338772
Opened 19 years ago
Closed 19 years ago
Show can't-drop indicator when dragging PTF bookmarks such that they won't move when dropped
Categories
(SeaMonkey :: Bookmarks & History, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: csthomas, Assigned: csthomas)
References
Details
(Keywords: fixed-seamonkey1.1b, polish)
Attachments
(1 file)
|
1.69 KB,
patch
|
jag+mozilla
:
review+
jag+mozilla
:
superreview+
iannbugzilla
:
approval-seamonkey1.1b+
|
Details | Diff | Splinter Review |
Right now, if you drag a tab a short distance, so that it won't actually change position when you drop, you get the can't-drop indicator. Bookmarks on the personal toolbar folder don't currently do that, and probably should.
http://lxr.mozilla.org/seamonkey/source/xpfe/components/bookmarks/resources/bookmarksMenu.js#470
<jag> On bookmark D&D: http://lxr.mozilla.org/seamonkey/source/xpfe/components/bookmarks/resources/bookmarksMenu.js#185
<jag> You should be able to call that method from canDrop and if it returns DROP_BEFORE or DROP_AFTER and it's for your next/prevSibling, you can return false
"your" is aDragSession.sourceNode (or something based on it)
| Assignee | ||
Comment 1•19 years ago
|
||
Inlining this into the existing return would make it ridiculously long.
Attachment #233429 -
Flags: superreview?(jag)
Attachment #233429 -
Flags: review?(jag)
Comment 2•19 years ago
|
||
Comment on attachment 233429 [details] [diff] [review]
patch
Instead of that comment you could move the second part to a |acceptsBookmarks(aTarget)| function which onDragStart could then call.
Attachment #233429 -
Flags: superreview?(jag)
Attachment #233429 -
Flags: superreview+
Attachment #233429 -
Flags: review?(jag)
Attachment #233429 -
Flags: review+
| Assignee | ||
Comment 3•19 years ago
|
||
Fixed on trunk with the patch as attached.
| Assignee | ||
Updated•19 years ago
|
Whiteboard: [cst: maybe request a= after baking]
| Assignee | ||
Updated•19 years ago
|
Attachment #233429 -
Flags: approval-seamonkey1.1a?
Attachment #233429 -
Flags: approval-seamonkey1.1a? → approval-seamonkey1.1b+
| Assignee | ||
Comment 4•19 years ago
|
||
Fixed on branch
Keywords: fixed-seamonkey1.1b
Whiteboard: [cst: maybe request a= after baking]
You need to log in
before you can comment on or make changes to this bug.
Description
•