Skip to content

Commit

Permalink
Update gradientslistwidget.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Nov 26, 2023
1 parent 7eaf9c3 commit 61e187f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/GUI/GradientWidgets/gradientslistwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ void GradientsListWidget::resizeEvent(QResizeEvent *e) {
const QSize size = e->size();
mDisplayedGradients->setMinimumHeight(size.height());
mDisplayedGradients->updateHeight();
/*const int scrollBarWidth = verticalScrollBar()->width();
const int scrollBarWidth = verticalScrollBar()->width();
const int availableWidth = size.width() - scrollBarWidth;
mDisplayedGradients->setFixedWidth(availableWidth);*/
mDisplayedGradients->setFixedWidth(availableWidth);
}

void GradientsListWidget::showEvent(QShowEvent *e) {
Expand Down

0 comments on commit 61e187f

Please sign in to comment.