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)

x86
Windows XP
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: csthomas, Assigned: csthomas)

References

Details

(Keywords: fixed-seamonkey1.1b, polish)

Attachments

(1 file)

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)
Attached patch patchSplinter Review
Inlining this into the existing return would make it ridiculously long.
Attachment #233429 - Flags: superreview?(jag)
Attachment #233429 - Flags: review?(jag)
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+
Fixed on trunk with the patch as attached.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: polish
Resolution: --- → FIXED
Whiteboard: [cst: maybe request a= after baking]
Attachment #233429 - Flags: approval-seamonkey1.1a?
Attachment #233429 - Flags: approval-seamonkey1.1a? → approval-seamonkey1.1b+
Fixed on branch
Whiteboard: [cst: maybe request a= after baking]
Depends on: 354140
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: