MantisBT - NetSurf
View Issue Details
0002189NetSurf[All Projects] Generalpublic2014-09-02 01:122015-03-10 23:44
ReporterHarriet Bazley 
Assigned ToMichael Drake 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformARMOSRISC OSOS Version5.19
Product Version3.2 
Target Version3.3Fixed in Version3.3 
Fixed in CI build #2126
Reported in CI build #2021
URL of problem page
Summary0002189: Redraw issues at ends of lines in text boxes
DescriptionWhen editing text in a text box on a Web form, Netsurf can fail to redraw the ends of lines correctly if the edit causes text to rewrap. The 'ghost' of the word that was previously at the start of the new line can be left visible in place of the replacement text.

Unfortunately this doesn't seem to be universally applicable (I've failed to get the issue to show up on the text entry boxes on this page, for example, even after switching to a proportional font), which makes it harder to demonstrate. This redraw problem often happens to me when using the GMail web interface, for example, and when using the 'private messaging' system on Fanfiction.net.
Steps To ReproduceOpen the GMail 'Compose Mail' window using the Basic HTML interface. Paste in the text "Yes, there is in fact a plot for this one under all the angst-- not much of a plot idea, but Chapter 1 was never more than just an isolated vignette!" (Image 1)


Place the cursor at the start of the second line, before the word "just", and delete the space between this word and the preceding word, thus creating a new word "justnever" and forcing Netsurf to rewrap it onto the line below. The 'ghost' of the old word "never" is still visible at the end of the first line, and the words "just a" are visible in their old position at the start of the second line as well as in their new position further along the line. (Image2)

Forcing a redraw by dragging another window over the left-hand side of the text box reveals the true state of affairs on the second line, though the first line has not yet been redrawn here (Image3).

Second example: usaing the same initial text, place the cursor at the end of the first line after the word "never", and insert the words "more than". There is only room for the letter "m", so after this is typed all the next text has to rewrap onto the line below. However, the first two letters on the new line never get redrawn, and the "m" is still visible in its initial position at the end of the first line (Image4)
TagsNo tags attached.
Attached Fileszip redraw.zip (22,408) 2014-09-02 01:12
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=185&type=bug

Notes
(0000492)
Michael Drake   
2014-09-19 12:56   
What format are these images?
(0000493)
Michael Drake   
2014-09-19 13:06   
Does this only happen when editing the first line of the textarea, and where it wraps to the second line?
(0000495)
Harriet Bazley   
2014-09-19 14:07   
The files are RISC OS sprite files - standard snapshots from Paint taken in a 16M colour mode. I can upload versions processed into JPEG format if needed.

I usually see this at the bottom of a long textarea entry when I'm editing text just typed, so it definitely applies to lines beyond the first. I can confirm that I still see the behaviour as described in version 2117.
(0000498)
Michael Drake   
2014-09-19 15:02   
PNG is best, but don't worry about upoading them, I've reproduced the issue for myself.
(0000502)
Michael Drake   
2014-09-27 19:12   
Please try build 2126. Hopefully no new redraw bugs were introduced.

(0000761)
Vincent Sanders   
2015-03-10 23:44   
Confirmed fixed in 3.3 release

Issue History
2014-09-02 01:12Harriet BazleyNew Issue
2014-09-02 01:12Harriet BazleyFile Added: redraw.zip
2014-09-02 11:08Vincent SandersAssigned To => Michael Drake
2014-09-02 11:08Vincent SandersStatusnew => acknowledged
2014-09-02 11:08Vincent SandersCategoryRISC OS-specific => General
2014-09-02 11:08Vincent SandersDescription Updatedbug_revision_view_page.php?rev_id=1320#r1320
2014-09-02 11:08Vincent SandersSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1322#r1322
2014-09-19 12:56Michael DrakeNote Added: 0000492
2014-09-19 13:06Michael DrakeNote Added: 0000493
2014-09-19 14:07Harriet BazleyNote Added: 0000495
2014-09-19 15:02Michael DrakeNote Added: 0000498
2014-09-27 19:12Michael DrakeFixed in CI build # => 2126
2014-09-27 19:12Michael DrakeNote Added: 0000502
2014-09-27 19:12Michael DrakeStatusacknowledged => resolved
2014-09-27 19:12Michael DrakeResolutionopen => fixed
2014-09-27 19:12Michael DrakeFixed in Version => 3.3
2014-09-27 19:12Michael DrakeTarget Version => 3.3
2014-09-27 19:12Michael DrakeNote Edited: 0000502bug_revision_view_page.php?bugnote_id=502#r1341
2015-03-10 23:44Vincent SandersNote Added: 0000761
2015-03-10 23:44Vincent SandersStatusresolved => closed