Skip to content

Commit

Permalink
gni
Browse files Browse the repository at this point in the history
Change-Id: I9ce85cab09fd57b44ee14937e984e9c0d3d8b1e8
  • Loading branch information
christophe-lunarg committed Nov 28, 2024
1 parent 182537d commit 13c031e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vkconfig_gui/widget_tab_configurations_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ ConfigurationLayerWidget::ConfigurationLayerWidget(TabConfigurations *tab, const

this->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
this->adjustSize();
this->setAlignment(Qt::AlignVCenter | Qt::AlignLeft);
this->setMinimumHeight(this->layer_state->height());
}

Expand Down Expand Up @@ -127,7 +128,7 @@ void ConfigurationLayerWidget::resizeEvent(QResizeEvent *event) {
this->layer_state->adjustSize();

const int width_state = this->layer_state->width();
const int height_state = this->height();
const int height_state = this->layer_state->height();

const QRect state_button_rect = QRect(size.width() - width_state, 0, width_state, height_state);
this->layer_state->setGeometry(state_button_rect);
Expand Down

0 comments on commit 13c031e

Please sign in to comment.