diff --git a/common/tier4_state_rviz_plugin/src/custom_button.cpp b/common/tier4_state_rviz_plugin/src/custom_button.cpp index b6ff82e4d9523..d7c7cebd6835a 100644 --- a/common/tier4_state_rviz_plugin/src/custom_button.cpp +++ b/common/tier4_state_rviz_plugin/src/custom_button.cpp @@ -4,7 +4,7 @@ CustomElevatedButton::CustomElevatedButton( const QString & text, const QColor & bgColor, const QColor & textColor, QWidget * parent) : QPushButton(text, parent), backgroundColor(bgColor), textColor(textColor) { - setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); + setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); setCursor(Qt::PointingHandCursor); // set font weight to bold and size to 12