- minor change for the FCComboBox UI element by setting its size policy as ignored so it will not expand the notebook when the name of one of its items is very long

This commit is contained in:
Marius Stanciu
2020-10-29 03:42:29 +02:00
committed by Marius
parent aebf11d457
commit 3f94c1dcfa
2 changed files with 4 additions and 0 deletions

View File

@@ -2111,6 +2111,9 @@ class FCComboBox(QtWidgets.QComboBox):
self._set_last = False
self._obj_type = None
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred)
self.setSizePolicy(sizePolicy)
# the callback() will be called on customcontextmenu event and will be be passed 2 parameters:
# pos = mouse right click click position
# self = is the combobox object itself