Commit 2b448e8d authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Reduce the height of the minimum size hint of our scroll area

Do not add the height of the widget's minimum size hint to the scroll
area's minimum size hint. Adding the height made the minimum size of
the scroll area too large on small displays (or with large magnifaction)
and is not necessary because the scroll area enables vertical scrolling.
This reverts one of the changes made with d4d7bb80.

GnuPG-bug-id: 5969
parent 3229c51b
......@@ -46,7 +46,7 @@ QSize ScrollArea::minimumSizeHint() const
const int fw = frameWidth();
QSize sz{2 * fw, 2 * fw};
sz += widget()->minimumSizeHint();
sz += {widget()->minimumSizeHint().width(), 0};
if (verticalScrollBarPolicy() != Qt::ScrollBarAlwaysOff) {
sz.setWidth(sz.width() + verticalScrollBar()->sizeHint().width());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment