[Webkit-unassigned] [Bug 56442] New: Horizontal scrollbar often appears when typing in textarea when the text should be wrapped instead.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 15 19:15:43 PDT 2011


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

           Summary: Horizontal scrollbar often appears when typing in
                    textarea when the text should be wrapped instead.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: Cngevpxhaqrefpber at gmail.com


Ever since I switched to Chrome (10) and Safari (5.0.4) I've noticed that often, when I'm typing in a textarea, a horizontal scrollbar appears when the text I'm typing should be wrapped to the next line instead. When this happens, it's not until I type another letter that the scrollbar disappears and the text wraps as it should.

I think the best way to explain this is with an example. (It took a bit of time for me to figure out how to reliably reproduce this by the way.) I should note that the problem happens on many different websites with textareas of varying widths and different text inside the textarea.

If you:

1. Open up the example HTML page attached (which is just a simple textarea with a width of 630 pixels, and a height large enough to contain at least two lines of text)

2. Type (or copy and paste) the following bit of text twice so that each is on a separate line: was in the 90s doesn't mean there's no room for a new promotion either or that

3. Press space

... then a horizontal scrollbar will appear. I've also attached a screenshot showing what it looks like after I press space on my system. The font shown is Courier New, size 12, and I'm using Windows 7. If you use a different font/size you'll probably have to play with the textarea width and maybe even the actual text inside too.

Two things I noticed:

1) If you only copy and paste or type that line once and then press space, the problem doesn't seem to occur.

2) If you type several lines of gibberish, and then copy+paste or type that line once on its own line, the problem does occur.

One final thing: this may be related to bug #55970, I'm not sure.

-- 
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