WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
9547
Resize corner does not track the mouse accurately
https://bugs.webkit.org/show_bug.cgi?id=9547
Summary
Resize corner does not track the mouse accurately
mitz
Reported
2006-06-22 13:35:23 PDT
There are two problems with the way the resize control tracks the mouse: 1) It does not take into account the point within the resize control where dragging started, always behaving as if the user is dragging the bottom-right pixel of the control. 2) It messes up when there are borders or padding. I am going to attach a patch that includes a test case.
Attachments
Proposed fix
(28.71 KB, patch)
2006-06-22 13:50 PDT
,
mitz
mitz: review-
Details
Formatted Diff
Diff
Proposed fix
(31.10 KB, patch)
2006-06-23 05:16 PDT
,
mitz
no flags
Details
Formatted Diff
Diff
Patch
(31.10 KB, patch)
2006-06-24 01:23 PDT
,
mitz
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2006-06-22 13:50:29 PDT
Created
attachment 8969
[details]
Proposed fix
mitz
Comment 2
2006-06-22 13:57:37 PDT
Comment on
attachment 8969
[details]
Proposed fix This is still off by 1 for textareas the first time you resize them.
mitz
Comment 3
2006-06-23 05:16:40 PDT
Created
attachment 8977
[details]
Proposed fix Fixed problems in the previous version. Added code to lift the intrinsic margins into the style, to prevent textareas from jumping when you first resize them.
mitz
Comment 4
2006-06-23 05:17:24 PDT
Forgot to mention that the new patch has another couple of cases in the test.
Darin Adler
Comment 5
2006-06-23 21:29:50 PDT
Comment on
attachment 8977
[details]
Proposed fix An offset should be an IntSize, not an IntPoint. If this was an IntSize, then this: + currentPoint.move(offsetFromResizeCorner.x(), offsetFromResizeCorner.y()); would be: currentPoint += offsetFromResizeCorner; This otherwise looks good to me. I think I'm going to mark it review+ -- if you decide to do a new patch with IntSize, then you can clear the review flag on this one.
mitz
Comment 6
2006-06-24 00:48:49 PDT
Comment on
attachment 8977
[details]
Proposed fix Going to change the offset to IntSize.
mitz
Comment 7
2006-06-24 01:23:00 PDT
Created
attachment 8996
[details]
Patch Changed the offset into an IntSize.
Darin Adler
Comment 8
2006-06-24 07:34:47 PDT
Comment on
attachment 8996
[details]
Patch r=me
Alexey Proskuryakov
Comment 9
2006-06-24 08:56:52 PDT
Committed revision 15014.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug