Bug 12798 - Resizing right-aligned textarea moves the left edge
Summary: Resizing right-aligned textarea moves the left edge
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 420+
Hardware: Macintosh OS X 10.4
: P1 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-02-17 11:28 PST by Adele Peterson
Modified: 2010-06-11 10:08 PDT (History)
3 users (show)

See Also:


Attachments
testcase (178 bytes, text/html)
2007-02-17 11:29 PST, Adele Peterson
no flags Details
patch that should help Gmail To field, doesn't resolve this bug based on title (34.51 KB, patch)
2007-04-29 01:50 PDT, Darin Adler
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>.