Skip to content

Commit

Permalink
Don't allow the city info grid to become squeezed
Browse files Browse the repository at this point in the history
The grid layout showing city output info in the city screen allowed rows to
shrink below their preferred size, which created overlap when there were many
units in a city. Not setting the row weights to 0 prevents this with no
apparent negative consequence.

Closes longturn#665.
  • Loading branch information
lmoureaux committed Sep 26, 2021
1 parent 245a58f commit e73d678
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/gui-qt/citydlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,6 @@ city_info::city_info(QWidget *parent) : QWidget(parent)
qlt[iter]->setFont(*small_font);
qlt[iter]->setProperty(fonts::notify_label, "true");
info_grid_layout->addWidget(qlt[iter], iter, 1);
info_grid_layout->setRowStretch(iter, 0);
}
setLayout(info_grid_layout);
}
Expand Down

0 comments on commit e73d678

Please sign in to comment.