Bug #66747 Horizontal Scrollbars Missing
Submitted: 10 Sep 2012 1:48 Modified: 30 Jul 2013 19:13
Reporter: John Vanderburg Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.42 OS:Windows (Win 7 Prof. x64 (v6.1 build 7601 SP1))
Assigned to: CPU Architecture:Any

[10 Sep 2012 1:48] John Vanderburg
Description:
There are a number of cases where the horizontal scrollbar does not display until you move the cursor past the edge of the text area using the keyboard.

I haven't determined an exact pattern, but it seems to always happen when text is sent via some operation in the object browser (such as Alter Procedure, Send to SQL Editor->Create Statement).

It also happens if you are editing as follows (with a new tab that doesn't yet have a horizontal scroll bar):

1. Have two lines that currently are not wider than the text area
2. Hit delete at the end of the first line, joining the second line to the first, resulting in a line that is now wider than the text area.

If you hit the 'End' key, the cursor will move to the end and only then will the horizontal scrollbar be displayed.  Resizing the workbench does not work.

How to repeat:
1.Open a connection and bring up the SQL Editor.
2. Resize the workbench so the editor window is narrow, perhaps 40 characters wide and 20 lines long.
3. Expand the tables under the mysql database in the Object Browser and right click on the db table, then select 'Send to SQL Editor->Create statement'
4. The create statement should display with a vertical, but no horizontal scrollbar.
[10 Sep 2012 12:46] MySQL Verification Team
Thank you for the bug report. Could you please attach a screen-shot. Thanks.
[10 Sep 2012 12:54] Peter Laursen
type this

Attachment: before.jpg (image/jpeg, text), 23.59 KiB.

[10 Sep 2012 12:56] Peter Laursen
place cursor before 1st char on 2nd line and press BACKSPACE - no scrollbar

Attachment: after.jpg (image/jpeg, text), 25.64 KiB.

[10 Sep 2012 12:58] Peter Laursen
press the END key and scrollbar appears

Attachment: end.jpg (image/jpeg, text), 28.35 KiB.

[11 Sep 2012 13:24] MySQL Verification Team
scrollbars

Attachment: scrollbars.png (image/png, text), 65.58 KiB.

[11 Sep 2012 13:26] MySQL Verification Team
I can't repeat on Windows 7 Professional 64-bit and Vista 32-bit.
[11 Sep 2012 13:51] Peter Laursen
@Miguel .. does it matter that John and I can repeat easily? See my screenshots, please.
[11 Sep 2012 14:35] John Vanderburg
Send to Editor example screenshot.

Attachment: SendToEditorIssue.jpg (image/jpeg, text), 95.47 KiB.

[11 Sep 2012 14:40] John Vanderburg
Miguel, thanks for reviewing this so quickly and sorry about the delay in getting back to you.

Also, thanks Peter for the previous screenshots.

The 'Send to Editor' example shows the more common situation I've run into.  

Note, that if you are just typing and go past the edge of the text area, or paste in long lines, the horizontal scrollbar displays as expected.

I'm going to try a clean install (remove the existing preferences and connections) and see if that has any effect.
[3 Jul 2013 15:47] Mike Lischke
Duplicate of Bug #51551
[3 Jul 2013 15:56] Mike Lischke
Worked on the wrong bug report. This problem is now fixed.
[3 Jul 2013 15:58] Mike Lischke
Bug #69640 was marked as duplicate.
[30 Jul 2013 19:13] Philip Olson
Fixed as of MySQL Workbench 6.0.4, and here's the changelog entry:

Horizontal scroll bars are now present on all text boxes. Sometimes the
horizontal scrollbar would not be displayed until the cursor was moved
past the edge of the text box using the keyboard.

Thank you for the bug report.