From 3f94c1dcfaf2b49d33eccaf5b1dbaeb07a8c5a63 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 29 Oct 2020 03:42:29 +0200 Subject: [PATCH] - 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 --- CHANGELOG.md | 1 + appGUI/GUIElements.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23fbe308..9a0419bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ CHANGELOG for FlatCAM beta - added icons in most application Tools - updated Punch Gerber Tool such that the aperture table is updated upon clicking of the checboxes in Processed Pads Type - updated Punch Gerber Tool: the Excellon method now takes into consideration the pads choice +- 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 28.10.2020 diff --git a/appGUI/GUIElements.py b/appGUI/GUIElements.py index a446f239..a76aa699 100644 --- a/appGUI/GUIElements.py +++ b/appGUI/GUIElements.py @@ -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