Skip to content

Commit

Permalink
Fix #315779: Disable auto-size of vertical frame when dragging the he…
Browse files Browse the repository at this point in the history
…ight handle
  • Loading branch information
cbjeukendrup committed Jan 29, 2021
1 parent e4861a7 commit 91311a0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions libmscore/box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,20 @@ void VBox::layout()
MeasureBase::layout();
}

//---------------------------------------------------------
// startEditDrag
//---------------------------------------------------------

void VBox::startEditDrag(EditData& ed)
{
if (isAutoSizeEnabled()) {
setAutoSizeEnabled(false);
setBoxHeight(Spatium(height() / spatium()));
}
Box::startEditDrag(ed);
}


//---------------------------------------------------------
// layout
//---------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions libmscore/box.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ class VBox : public Box {
QVariant getProperty(Pid propertyId) const override;
void layout() override;

virtual void startEditDrag(EditData&) override;

std::vector<QPointF> gripsPositions(const EditData&) const override;
};

Expand Down

0 comments on commit 91311a0

Please sign in to comment.