Skip to content

search: Prevent the search box from enlarging the view

Ismael Asensio requested to merge work/iasensio/searchbar-not-greedy into master

By default, the search filters widget calculates its minimumSizeHint as the sum of its components' minimum widths.

This minimum width hint will scale up the widgets hierarchy, finally imposing a minimum width to the contents view, which in certain conditions can take the space from the side panels.

Let's set a minimum width hint of 0, so it is the filters widget which always adapts to the available view size instead.

Screenshot_20230303_234851

BUG: 466796 FIXED-IN: 23.04

Merge request reports

Loading