diff --git a/src/Gui/QuantitySpinBox.cpp b/src/Gui/QuantitySpinBox.cpp index 3bfd2a2db6..b64494d9b1 100644 --- a/src/Gui/QuantitySpinBox.cpp +++ b/src/Gui/QuantitySpinBox.cpp @@ -259,6 +259,8 @@ QuantitySpinBox::QuantitySpinBox(QWidget *parent) iconLabel->setStyleSheet(QString::fromLatin1("QLabel { border: none; padding: 0px; padding-top: %2px; width: %1px; height: %1px }").arg(iconHeight).arg(frameWidth/2)); iconLabel->hide(); lineEdit()->setStyleSheet(QString::fromLatin1("QLineEdit { padding-right: %1px } ").arg(iconHeight+frameWidth)); + // When a style sheet is set the text margins must for top/bottom must be set to avoid to squash the widget + lineEdit()->setTextMargins(0, 2, 0, 2); QObject::connect(iconLabel, SIGNAL(clicked()), this, SLOT(openFormulaDialog())); }