Skip to content

Commit

Permalink
Merge pull request #5930 from SKefalidis/tiny-ui-fix
Browse files Browse the repository at this point in the history
Fixed clipping issue in Note Spelling (edit style ui)
  • Loading branch information
anatoly-os committed Apr 14, 2020
2 parents 8198aeb + 3cfcf95 commit 9bb6d4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mscore/editstyle.cpp
Expand Up @@ -30,6 +30,7 @@
#include "inspector/alignSelect.h"
#include "inspector/offsetSelect.h"
#include "inspector/fontStyleSelect.h"
#include "preferences.h"

namespace Ms {

Expand Down Expand Up @@ -559,6 +560,11 @@ EditStyle::EditStyle(Score* s, QWidget* parent)
mapper2->setMapping(sw.widget, int(sw.idx));
}

int topBottomMargin = automaticCapitalization->rect().height() - preferences.getInt(PREF_UI_THEME_FONTSIZE);
topBottomMargin /= 2;
topBottomMargin = topBottomMargin > 4 ? topBottomMargin - 4 : 0;
automaticCapitalization->layout()->setContentsMargins(9, topBottomMargin, 9, topBottomMargin);

connect(mapper, SIGNAL(mapped(int)), SLOT(resetStyleValue(int)));
connect(mapper2, SIGNAL(mapped(int)), SLOT(valueChanged(int)));
textStyles->clear();
Expand Down

0 comments on commit 9bb6d4a

Please sign in to comment.