Bug 12798

Summary: Resizing right-aligned textarea moves the left edge
Product: WebKit Reporter: Adele Peterson <adele>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bdakin, dbates, mitz
Priority: P1 Keywords: InRadar
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
testcase
none
patch that should help Gmail To field, doesn't resolve this bug based on title none

Description Adele Peterson 2007-02-17 11:28:01 PST
Resizing right-aligned textarea moves the left edge

In the attached test case, try resizing the textarea.  It looks pretty weird when the left edge moves as you drag the lower-right corner.

Maybe we need to do more than just change the width / height when resizing.  I'm not exactly sure how this would work, but maybe we can somehow keep the top/left corner pinned to the position where it started.
Comment 1 Adele Peterson 2007-02-17 11:29:33 PST
Created attachment 13214 [details]
 testcase
Comment 2 Adele Peterson 2007-02-17 11:31:11 PST
<rdar://problem/4977927>

Btw, I made this a P1 since its a problem with a new feature (resize)
Comment 3 mitz 2007-02-17 12:07:46 PST
Bug 9223 mentions the possibility of moving the resize corner to the left for RTL textareas (which are commonly right-aligned). As long as textareas are not resizable by default, I suppose authors will not make them resizable where it would not make sense given how the feature works.
Comment 4 mitz 2007-02-23 04:11:25 PST
My opinion is that for the time being, it would be best to limiting resizing to the vertical axis in this case.
Comment 5 mitz 2007-02-23 04:12:04 PST
s/limiting/limit/
Comment 6 Darin Adler 2007-04-29 01:47:56 PDT
<rdar://problem/4118559>
Comment 7 Darin Adler 2007-04-29 01:50:26 PDT
Created attachment 14257 [details]
patch that should help Gmail To field, doesn't resolve this bug based on title
Comment 8 Darin Adler 2007-04-29 13:55:58 PDT
Comment on attachment 14257 [details]
patch that should help Gmail To field, doesn't resolve this bug based on title

Landed this patch. Clearing the review flag since the bug isn't necessarily fixed yet.
Comment 9 Dave Hyatt 2007-04-29 14:17:12 PDT
All that code about resizing in Element.cpp is completely misplaced.
Comment 10 Dave Hyatt 2007-04-29 14:58:13 PDT
resize is purely presentational, so you shouldn't have to touch the DOM at all to change its behavior.
Comment 11 Daniel Bates 2010-03-13 23:54:44 PST
For completeness, the patch <https://bugs.webkit.org/attachment.cgi?id=14257> was committed in changeset 21184 <http://trac.webkit.org/changeset/21184>.