Bug #41636 Straight vertical or horizontal relationship not clickable
Submitted: 19 Dec 2008 12:37 Modified: 17 Sep 2009 15:27
Reporter: Karsten Wutzke Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.0.29 OS:Windows (XP)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: CHECKED, relationship vertical horizontal click hover

[19 Dec 2008 12:37] Karsten Wutzke
Description:
I try to model my diagram's relationships without "angles", so I often wind up having straight lines between tables. With 5.0.29 (can't say if any previous version are affected, too) when hovering over a relationship, it doesn't turn red and thus can't be selected via click.

How to repeat:
Try to move table boxes around so that either an exactly vertical or horizontal line is created. Moving the mouse cursor over them does nothing.

Workaround: Either produce a jagged edge or use the mouse with *pressed* left mouse button to select with multi object selection tool.

Suggested fix:
It seems like a relationship line gets some size/width of the orthogonal line if one exists. Offsetting line with one or a few pixels restores the desired behavior. Looks like some property is being set to zero which should really be the minimum X pixels that a straight line needs to be in size/width.
[19 Dec 2008 13:30] MySQL Verification Team
Thank you for the bug report. It is possible you illustrate that with a screen-shot?. Thanks in advance.
[19 Dec 2008 16:23] Karsten Wutzke
No red hover shown on relationship

Attachment: mysqlwb-nohovershown.jpg (image/jpeg, text), 36.03 KiB.

[19 Dec 2008 16:25] Karsten Wutzke
The screenshot doesn't save the cursor on Windows XP, so I marked the point with a red X where the cursor was when I created the screenshot. The next image shows a slightly displaced relationship with a small edge in between...
[19 Dec 2008 16:28] Karsten Wutzke
Red hover shown on relationship

Attachment: mysqlwb-hovershown.jpg (image/jpeg, text), 35.58 KiB.

[19 Dec 2008 16:31] Karsten Wutzke
The pixel span, where the relationship becomes red is just one pixel wide in the example. It seems to be zero for the straight edge example...
[19 Dec 2008 16:34] Karsten Wutzke
Synopsis corrected (typo)
[19 Dec 2008 16:55] Valeriy Kravchuk
Could you, please, upload the .mwb file that demonstrates the behaviour described? I can not repeat this problem.
[20 Dec 2008 12:29] Karsten Wutzke
I think you have to zoom out a little... as a matter of fact, using the default zoom level (which I didn't when posting this bug report) it seems to work with straight lines, however, I have to hit the exact pixel where the line is. For angled relationships, all seems to be ok.
[20 Dec 2008 12:33] Karsten Wutzke
Example relationship (zoom out)

Attachment: straight-and-angled-lines.mwb (application/octet-stream, text), 7.61 KiB.

[22 Dec 2008 13:23] MySQL Verification Team
Thank you for the feedback. Verified with the sample project provided.
[17 Sep 2009 15:27] Johannes Taxacher
this has been improved during optimization/changes of drawing code. could not reproduce that anymore with 5.2.3 and 5.1.18