Bug #57752 Pasting long statements into SQL editor does not show scroll bar
Submitted: 26 Oct 2010 19:09 Modified: 24 Aug 2014 6:45
Reporter: Dimitriy A Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.29 CE OS:Microsoft Windows (XP Pro)
Assigned to: CPU Architecture:Any
Tags: horizontal scroll bar, long text, paste

[26 Oct 2010 19:09] Dimitriy A
Description:
Pasting one or more long statements into SQL editor does not show a scroll bar. Upon pasting long statements into SQL editor and if the statements do not fit into the visible window should result in a horizontal scroll bar to be shown at the bottom.

The vertical scroll bar seems to be working fine when many rows are pasted and they don't fit into the visible window.

How to repeat:
Open SQL Editor, paste SQL statement that is longer than the visible window.

Suggested fix:
Show the horizontal scroll bar upon pasting of text when appropriate.
[26 Oct 2010 20:02] MySQL Verification Team
Thank you for the bug report. Please provide a screen-shot illustrating the issue?. Thanks in advance.
[26 Oct 2010 21:18] Dimitriy A
Missing horizontal scroll bar

Attachment: missing_horizontal_scroll_bar.jpg (image/jpeg, text), 56.82 KiB.

[26 Oct 2010 21:22] Dimitriy A
The supplied screen shot shows that the horizontal scroll bar does not show up after pasting a long SQL statement. I now see that this behavior is triggered by a newline at the end of the statement. This behavior is also trigerred if the last line of pasted text is short and fits into the visible window.
[27 Oct 2010 7:02] Valeriy Kravchuk
Thank you for the bug report.
[24 Aug 2014 6:45] Alfredo Kojima
Unfortunately this is a limitation of the text control used (Scintilla). It does not compute line widths because of potential performance issues.