Closed
Bug 42046
Opened 25 years ago
Closed 22 years ago
drag+drop for image works second time
Categories
(Core :: DOM: Editor, defect, P3)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
mozilla1.4beta
People
(Reporter: sujay, Assigned: kinmoz)
References
Details
(Keywords: helpwanted, topembed+, Whiteboard: [d&d]editorbase+,edt_x3)
Attachments
(1 file, 2 obsolete files)
8.56 KB,
patch
|
mjudge
:
review+
sfraser_bugs
:
superreview+
|
Details | Diff | Splinter Review |
using 6/9 build of netscape
1) launch netscape
2) launch composer
3) insert image
4) drag and drop that image somewhere below the first image.
intially this doesn't work...but when you try it again the second time
it works.
all platforms.
okay just talked to Kathy...the issue here is that if you click the image first
and then drag it, it works...but if you select it and then try dragging it
doesn'w work...
I feel either way shoulod work for the user...Beth can you approve having us
fix it so it works both ways?
Putting on [nsbeta2-] radar. Not critical to beta2. Put on relnote keyword.
Keywords: relnote
Whiteboard: [nsbeta2-]
Updated•25 years ago
|
Status: NEW → ASSIGNED
Updated•24 years ago
|
Whiteboard: [nsbeta2-]
Comment 6•24 years ago
|
||
adding help wanted keyword
Updated•24 years ago
|
Whiteboard: [d&d]
Comment 8•23 years ago
|
||
removing myself from the cc list
Updated•22 years ago
|
Component: Editor: Composer → Editor: Core
Comment 9•22 years ago
|
||
Chris--I suspect this is related to our embedding customer's issue (616141). I
think it's a core d&d issue or a core selection issue. Will probably need some
cycles from mjudge to determine.
Keywords: topembed
Target Milestone: Future → ---
Comment 10•22 years ago
|
||
topembed+, at least for investigation
->mjudge
Comment 11•22 years ago
|
||
Kin poked around enough to see that part of the problem is the code here needs
to be smarter:
http://lxr.mozilla.org/seamonkey/source/layout/html/base/src/nsFrame.cpp#1312
-->kin for now
Assignee: mjudge → kin
Whiteboard: [d&d] → [d&d]editorbase
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.4alpha
Assignee | ||
Comment 13•22 years ago
|
||
This patch allows us to drag -moz-user-select:all, images and hrs on the mouse
down. The changes that enable this are in nsFrame.cpp. Also included in this
patch is a small change in nsHTMLDataTransfer.cpp that prevents the editor from
dropping content into the middle of -moz-user-select:all subtrees.
Assignee | ||
Comment 14•22 years ago
|
||
This patch is almost identical to patch rev 1, except it adds code that checks
to see if the user actually clicked within the bounds of a -moz-user-select:all
subtree. Apparently, in some cases, selection will hilite -moz-user-select:all
subrees even if you haven't clicked in it.
Attachment #116557 -
Attachment is obsolete: true
Attachment #116877 -
Flags: review?(mjudge)
Assignee | ||
Comment 15•22 years ago
|
||
Same as previous patch except I moved:
+ rv = aRelativeView->GetParent(aRelativeView);
+ if (NS_FAILED(rv)) return PR_FALSE;
to the bottom of the while loop. Duh ... thanks for catching that mjudge.
Attachment #116877 -
Attachment is obsolete: true
Attachment #116877 -
Flags: review?(mjudge)
Attachment #116878 -
Flags: review?(mjudge)
Comment 16•22 years ago
|
||
Comment on attachment 116878 [details] [diff] [review]
Patch Rev 1.2
looks good now
Attachment #116878 -
Flags: review?(mjudge) → review+
Attachment #116878 -
Flags: superreview?(sfraser)
Updated•22 years ago
|
Attachment #116878 -
Flags: superreview?(sfraser) → superreview+
Updated•22 years ago
|
Whiteboard: [d&d]editorbase+ → [d&d]editorbase+,edt_x3
Updated•22 years ago
|
QA Contact: sujay → beppe
Assignee | ||
Comment 17•22 years ago
|
||
Patch Rev 1.2 checked into the TRUNK:
mozilla/layout/html/base/src/nsFrame.cpp revision 3.427
mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp revision 1.79
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 18•22 years ago
|
||
*** Bug 194280 has been marked as a duplicate of this bug. ***
Comment 19•22 years ago
|
||
using trunk build from 2003040708 on win2K, this works fine. This is what I did:
1. opened new composer window
2. entered several lines of text
3. inserted image in first line of text
4. selected image and moved in several different locations via select & drag
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•