diff --git a/modules/search_form.py b/modules/search_form.py index 4ff860ba..0763939a 100644 --- a/modules/search_form.py +++ b/modules/search_form.py @@ -250,9 +250,10 @@ def pop_as_cbbs(self, tags: dict): self.cbb_geofilter.addItem(ico_line, layer.name()) elif layer.geometryType() == 0: self.cbb_geofilter.addItem(ico_poin, layer.name()) - # Format combobox tiems text to fit with widget width + # Format combobox items text to fit with widget width for cbb in self.cbbs_search_advanced: - cbb_width = cbb.width() + cbb.setStyleSheet("combobox-popup: 0; font-size: 12px") + cbb_width = cbb.width() - 20 cbb_fm = cbb.fontMetrics() for i in range(cbb.count()):