[Webkit-unassigned] [Bug 47462] New: Textarea resizes too fast when its size changes the size of the page

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 9 19:53:31 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=47462

           Summary: Textarea resizes too fast when its size changes the
                    size of the page
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eboyjr14 at gmail.com


Created an attachment (id=70384)
 --> (https://bugs.webkit.org/attachment.cgi?id=70384&action=review)
Simple test page

Let's say you have a textarea at the bottom of the page. (you have a textarea at the bottom of the page)

If you drag the textarea so it is bigger, and then make it smaller, it will shrink on every mouse move, basically. It will shrink too fast.

So if there was another way the textarea was resized, it wouldn't do that.

I propose a new method of resizing it, written in Pseudocode.

When you start to resize the textarea:
    set start_x = mouse coordinates on the screen(x)
    set start_y = mouse coordinates on the screen(y)
    set start_width = width of textarea()
    set start_height = height of textarea()

When you drag the mouse on the screen:
    set move_x = mouse coordinates on the screen(x)
    set move_y = mouse coordinates on the screen(y)

    set diff_x = move_x - start_x
    set diff_y = move_y - start_y

    set_width_of_textarea ( start_width + diff_x );
    set_height_of_textarea( start_height + diff_y );


I hope there is no mistake in my pseudocode but that is basically my idea. I may need to clarify a few points.

Drawbacks:
  There is the possibility that the mouse cursor position is not syncronized with the resize handle of the textarea.

Advantages:
  The resizing of the textarea is relative to the screen and not the page

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list