← All bug reports

FS#657Auto Zoom applied too often

Type
Feature Request
Status
Closed
Resolution
Implemented
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3.0.0
Operating system
All
Reported
2012-07-29 by LeoP
Closed
2013-05-22 by andrew

Auto Zoom should not be applied every time you go back and forth between editing a block and the main drawing.
At least, not by default: it just isn't practical. QCAD2 didn't do it...

see also http://www.ribbonsoft.com/rsforum/viewtopic.php?f=31&t=2111

Comments (4)

LeoP 2012-07-29

Actually, I should have called it 'medium severity'...

andrew 2012-07-31

QCAD 2 used to open the block that is being edited in a separate window. After editing the block, the window was closed. The window with the original drawing was never affected by this. QCAD 3 opens the edited block in the same window as the main drawing. This makes the autozoom necessary when switching between blocks.

Possible solution: store the last known position / zoom for every block and apply it when switching blocks.

LeoP 2012-07-31

A good suggestion, but how do I do that?

andrew 2012-07-31

This is a suggestion for future development.

If you are interested, this will likely go into scripts/Block/EditBlock/EditBlock.js

The idea is:

// store offset and zoom factor of current view in a map:
...

// change current block that is being edited:
this.getDocumentInterface().setCurrentBlock(item.text());

// restore offset and zoom factor of new block from map or default to auto zoom:
...