Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Piano roll vertical zoom #5442

Merged
merged 10 commits into from
Apr 30, 2020
2 changes: 1 addition & 1 deletion src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ void PianoRoll::drawNoteRect( QPainter & p, int x, int y,

int const distanceToBorder = 2;
int const xOffset = borderWidth + distanceToBorder;
int const yOffset = (noteHeight + noteTextHeight) / 2;
int const yOffset = ((noteHeight + fontMetrics.capHeight()) * 8 + 8) / 16;
akimaze marked this conversation as resolved.
Show resolved Hide resolved

if (textSize.width() < noteWidth - xOffset)
{
Expand Down