2024-05-02 00:16 BST

View Revisions: Issue #2190

Summary 0002190: Text box does not redraw when scroll of last line caused by edit higher up
Revision 2014-09-02 01:21 by Harriet Bazley
Description This redraw issue may well be related to issue 2189: however I *can* demonstrate it on the Mantis bug reporter text boxes.

Adding extra text such that the content of the text box exceeds the previous capacity of the display causes extra offscreen lines to be created without adjusting the scrollbar so that it is possible to reach them - and using key shortcuts to jump to the new bottom of the text fails to redraw the window to reflect the actual contents at that point.
Revision 2014-09-02 11:09 by Vincent Sanders
Description This redraw issue may well be related to issue 2189: however I *can* demonstrate it on the Mantis bug reporter text boxes.

Adding extra text such that the content of the text box exceeds the previous capacity of the display causes extra offscreen lines to be created without adjusting the scrollbar so that it is possible to reach them - and using key shortcuts to jump to the new bottom of the text fails to redraw the window to reflect the actual contents at that point.
Revision 2014-09-02 01:21 by Harriet Bazley
Steps To Reproduce Type sufficient text to fill all the lines in the text box, such that a scrollbar appears. (Image5)

Then edit the text by adding extra words such that the final line of the text box content wraps down onto the next line. (Image6)

There is now no way to scroll the text down to view this new final line. The scrollbar remains at the bottom of the well, and clicking on its down arrow has no effect. Neither does forcing a redraw by dragging a menu over the window.
However, if you place the cursor at the end of the visible text and press the right arrow key, it will wrap around to the start of the new line, and the whole contents of the window will scroll up without actually redrawing: if you now start typing your new text will appear in the middle of whatever text had invisibly wrapped round, and the bottom two lines of the textbox will be redrawn to reflect the actual content (giving the appearance that several lines of intervening text have gone missing!)

Here, I placed the cursor at the 'end' of the text seen in Image6 and typed a letter H, which appeared before the text at the start of the new line (Image7)
Dragging a window partially over the text box demonstrates corrupted text from the partial redraw. (Image8)
Revision 2014-09-02 11:09 by Vincent Sanders
Steps To Reproduce Type sufficient text to fill all the lines in the text box, such that a scrollbar appears. (Image5)

Then edit the text by adding extra words such that the final line of the text box content wraps down onto the next line. (Image6)

There is now no way to scroll the text down to view this new final line. The scrollbar remains at the bottom of the well, and clicking on its down arrow has no effect. Neither does forcing a redraw by dragging a menu over the window.
However, if you place the cursor at the end of the visible text and press the right arrow key, it will wrap around to the start of the new line, and the whole contents of the window will scroll up without actually redrawing: if you now start typing your new text will appear in the middle of whatever text had invisibly wrapped round, and the bottom two lines of the textbox will be redrawn to reflect the actual content (giving the appearance that several lines of intervening text have gone missing!)

Here, I placed the cursor at the 'end' of the text seen in Image6 and typed a letter H, which appeared before the text at the start of the new line (Image7)
Dragging a window partially over the text box demonstrates corrupted text from the partial redraw. (Image8)