Opened 5 years ago

Last modified 5 years ago

#5841 closed defect

Erroneous bounding rectangle and starting size of Diagram window size — at Initial Version

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: critical Milestone: 1.16.0
Component: OMEdit Version: v1.16.0-dev
Keywords: Cc:

Description

When showing a diagram in the diagram window, OMEdit determines the diagram size in such a way that the bounding rectangle is visible.
Unfortunately, this bounding rectangle is not the rectangle as defined by the Extent annotation of the considered diagram, but, instead, the OMEdit default for new diagrams.
This obliges to do strange things to show what we want and to spoil some of the desktop space.

To show the issue Consider the enclosed windows.mo file, while using the standard defaults for Diagram View Extent: -100 -100, 100, 100.
This file contains two examples which, once displayed in the Diagram window, cannot be shown without white spaces above and below, whatever the size is manually given to the window.
Moreover, in case of Window1 model, if I choose a size that leaves the source and the resistor outside view, I cannot get to make them visible operating on the scrollbars (the scrollbar parameters seem to be incorrect).

So I propose that:

1) set the bounding rectangle of the diagram view so that its aspect ratio is equal to the actual Extent of the shown diagram.
2) choose the scrollbars in such a way that it is always possible to see all the diagram parts.

Change History (0)

Note: See TracTickets for help on using tickets.