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 Feb 15, 2021
1 parent 18b2716 commit 9781caa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/libmscore/box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,19 @@ 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 src/libmscore/box.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ class VBox : public Box
QVariant getProperty(Pid propertyId) const override;
void layout() override;

void startEditDrag(EditData&) override;

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

Expand Down

0 comments on commit 9781caa

Please sign in to comment.