Bug #36328 Scrolling, shifted content, navigation renders unusable
Submitted: 24 Apr 2008 22:24 Modified: 29 May 2008 0:18
Reporter: R P Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.0.21 SE OS:Windows (Vista Business)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: scrolling canvas shifted

[24 Apr 2008 22:24] R P
Description:
Look at these screenshots you see it immediately:

1)a) The content cannot be scrolled or navigated half of the content is to the right of my canvas.
b) resizing doesn't help
c)the Navigator showes wrong indications
http://img260.imageshack.us/my.php?image=bug1gl0.jpg
http://img260.imageshack.us/my.php?image=bug2ce3.jpg

2)When resizing the window to make it smaller horizontally everything gets black:
http://img214.imageshack.us/my.php?image=bu3fx3.jpg

How to repeat:
Vista Business
Workbench 5.0.19 SE
880 GTS Nividia Graphics Card

I loaded several tables for Reverse Engineering with lots of attributes (more then 80). Didn't try with small tables..
[24 Apr 2008 23:01] R P
8800GTS
[28 Apr 2008 7:09] Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 5.0.21 SE, and inform about the results.
[28 Apr 2008 10:33] R P
Ok thanks for looking into this, i have tested the new version but there are still issues.

I have installed the new version over the old and when I saw there was the same problem again also uninstalled the old and reinstalled the new version to be sure I have the right version.

When trying to Reverse Engineer the same Mysql Create Script via Import:
The canvas stays shifted to the right.

But what might be a useful information for you is that this shift happens suddenly when scrolling or when mouseclicking in the navigator pane.
After it happend it is almost impossible to get the content centered again - one has to give up on changing the generated contents..

Another thing when I add a new diagram and place the contents by hand this does not happen, there is a darker gray line in the middle (dont know what that indicates) but it is working good (ee 3rd image what i mean with gray line)

See attached image (this is after import):
http://img155.imageshack.us/my.php?image=bug1gc6.jpg

See attached image (placing objects on the still shifted canvas and navigator on the right not showing the right indications):
http://img72.imageshack.us/my.php?image=bug2rx6.jpg

gray line.. (why is it in the middle here? when importing and autoplacing this indicates the border of the canvas)
http://img155.imageshack.us/my.php?image=bug3ld5.jpg

The only thing special about our setups is that we use a 30 inch TFT.
[29 Apr 2008 19:14] Dan Hagon
exhibiting case of this scrolling canvas shifting behaviour

Attachment: test.mwb (application/octet-stream, text), 12.28 KiB.

[29 Apr 2008 19:26] Dan Hagon
The above file shows the same behaviour occurring for my version (5.0.21 OSS, Windows XP, 5.1, x86)

To repeat:

-Start Workbench
-load test.mwb
-click on the vertical scrollbar
-immediately canvas will shift to the right

Note that initially the zoom factor is 90. Now:

-Adjust zoom factor to 65 (click the left, smaller, of the two icons)
-canvas now looks centered
-click vertical scroll bar and again canvas immediately moves to the right

Please note that my file started off as a DBDesigner file a long time ago and I upgraded it to MySQL WorkBench since before 5.0.14a-beta and have kept it as such since.

Hope this helps.
[9 May 2008 1:18] R P
Actually this bug makes the program unusable!
[10 May 2008 6:25] Lee Johnson
I am having the same problem.

When I open the model in the viewer it opens fine. But, if I navigate around, the model shifts to the right of the page and half of the model moves out of view (behind the right side windows). the scroll bars do not bring the model back into view. In fact, when the diagram is in the middle and looks fine, if I click on the scroll bar (but don't actually move it yet or anything) the diagram instantly moves out of view to the right.

I've tried undocking, and experience the same behaviour. The model moves to the right and half out of view. The scroll bars have no effect.

If I shut down Workbench and re-open it, then the model re-appears in the middle of the screen. The only way to fix it is to close and restart Workbench. 

Environment
Windows Vista Home Premium
MySQL Workbench 5.0.21 OSS, Revision 3111
Nvidia Gforce Go 7400
[10 May 2008 17:11] Lee Johnson
I should add that this diagram was reversed engineered.  I imported a MySQL Create script.
[15 May 2008 13:55] MySQL Verification Team
Thank you for the bug report.
[16 May 2008 8:49] clemens gruenberger
A good workaround seems to be to copy all tables to a new 2 page EER canvas. All problems go away then. 
Maybe this is an indication that the bug is to be found within the width calculation of the one page layout for Reengineered DB schemata. (It seems as if it is expecting that the left page is there, but isn't. Thus what you see jumps always to the right.)
[19 May 2008 16:36] Johannes Taxacher
this happens whenever scrollbars are used when the diagram is set to a zoom-level that it's smaller than the actual viewable area.
as workaround, setting the diagram-size to use more pages should help.
[21 May 2008 19:21] Johannes Taxacher
this issue should be fixed now. tested in bzr rev 3106
[23 May 2008 1:33] Lee Johnson
Does this mean there is a new build out?  I don't see a new version or build.
[26 May 2008 20:02] Michael G. Zinner
We are currently working to get the next release pass our QA tests. It should be published later this week, hopefully on Wednesday. Sorry for the delay.
[29 May 2008 0:18] Paul DuBois
Noted in 5.0.22 changelog.

Shifted content could not be scrolled or navigated.