Project

General

Profile

Actions

Bug #5727

closed

saving workflow changes canvas center

Added by Daniel Crawl about 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
interface
Target version:
Start date:
10/30/2012
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5727

Description

The first time a workflow is saved, the center of the canvas changes. The actors originally in the center are now in the top left. (This does not happen when saving as MoML or in Vergil.)

Actions #1

Updated by Christopher Brooks about 12 years ago

Try looking at these changes in the ptII tree:
2012-09-27 12:34 cds

  • [r64721] /trunk/ptolemy/vergil/basic/BasicGraphFrame.java: -
    Changed: Added a little space between the model and its border to
    the top-left-corner locating code.

2012-09-27 11:55 cds

  • [r64720] /trunk/ptolemy/vergil/basic/BasicGraphFrame.java: -
    Changed: If no zooming and panning info are present in a model,
    the Vergil view's top left corner is now set to the top left
    corner of the model.

Edward wrote:
--start--
I agree. If there is no zoom or pan information in the model,
the viewport should have (minX, minY) at the upper left.

This would be an improvement....
--end--

Christoph Daniel wrote:
--start--
I implemented this and just committed the change. The view's top left
corner is now set to the top left corner of the model if no zooming or
panning info are available.

By the way, Christopher, your demo model (c1.xml) actually did contain
zooming and panning info, so the code change does not affect how that
model is loaded. Perhaps some kind of a sanity check on zooming and
panning info would be nice? Not sure how to define "sanity" here, though...
--end--

Actions #2

Updated by Christopher Brooks about 12 years ago

There are some similar issues in vergil, so I'll take this bug, fix vergil and
then reassign it to Derik after I fix this in Ptolemy.

Actions #3

Updated by Daniel Crawl almost 12 years ago

This was fixed by change r31332 to ExportArchiveAction: the window size, position, and zoom are now added to the workflow so the viewport is not changed.

Actions #4

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 5727

Actions

Also available in: Atom PDF