Skip to content

Commit

Permalink
Add 25% space to model's extents.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Apr 10, 2017
1 parent 3e1126b commit f4bd4ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -123,9 +123,9 @@ void GraphicsView::setExtentRectangle(qreal left, qreal bottom, qreal right, qre
{
mExtentRectangle = QRectF(left, bottom, fabs(left - right), fabs(bottom - top));
/* Ticket:4340 Extend vertical space
* Make the drawing area 3 times larger than the actual size. So we can better use the panning feature.
* Make the drawing area 25% bigger than the actual size. So we can better use the panning feature.
*/
QRectF sceneRectangle(left * 3, bottom * 3, fabs(left - right) * 3, fabs(bottom - top) * 3);
QRectF sceneRectangle(left * 1.5, bottom * 1.5, fabs(left - right) * 1.5, fabs(bottom - top) * 1.5);
setSceneRect(sceneRectangle);
centerOn(sceneRectangle.center());
}
Expand Down

0 comments on commit f4bd4ad

Please sign in to comment.