Bug #50242 When you zoom out, you may draw layers beyond the permiter of your EER diagram
Submitted: 11 Jan 2010 15:36 Modified: 26 May 2010 12:40
Reporter: David Peace Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.11 OS:Windows
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: diagram, layers, permiter, zoom

[11 Jan 2010 15:36] David Peace
Description:
This is in addition to bug #50240, and may be related.  When you zoom all the way out of your EER document, it allows you to draw a new layer beyond the right and bottom perimeter of your EER diagram.

If you drag beyond the left and top perimeter, it will snap back into the diagram's limits but will not refresh the navigators thumbnail of the diagram until you click and drag the layer.

How to repeat:
HOW TO REPEAT (To the right and bottom of the document)

1) Create a new EER Diagram.
2) Zoom out to 30%
3) Click the new layer button.
4) Click in the middle of your EER diagram, and drag to the right or bottom beyond the perimeter of the document.
5) You will have created a layer that extends beyond your diagram's perimeter.

HOW TO REPEAT (To the left and top of the document)

1) Create a new EER Diagram.
2) Zoom out to 30%
3) Click the new layer button.
4) Click in the middle of your EER diagram, and drag to the left or top beyond the perimeter of the document.
5) The layer will snap into the perimeter of the document, but the preview thumbnail in the navigater will still show the layer beyond the limits of the diagram.  This will not update to the correct thumbnail unless you click and drag the offending layer to refresh.

Suggested fix:
Ensure that layers may not ever be drawn beyond the document's perimeter in any direction despite the zoom level.
[12 Jan 2010 7:47] Valeriy Kravchuk
Thank you for the bug report. Verified just as described.
[5 May 2010 0:11] Alfredo Kojima
Changed selection code to only allow selection and layer creation inside the canvas area.
[26 May 2010 11:24] Johannes Taxacher
fix confirmed in repository.
layers created too big will be resized to fit the current diagram size now
[26 May 2010 12:40] Tony Bedford
An entry has been added to the 5.2.22 changelog:

In the EER Diagram view, when zoomed out, a layer could be placed beyond the diagram's perimeter at the bottom right. Further, if a layer was placed beyond the perimeter at the top left, it snapped back within confines of the diagram correctly, but the navigator view was not updated accordingly.