From 29ce53b577cc3cf6756fce6673d77f4ff9c3c59c Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 17 May 2020 05:40:52 +0300 Subject: [PATCH] - solved the issue with the GUI in the Notebook being expanded too much in width due of the FCDoubleSpinner and FCSpinner sizeHint by setting the sizePolicy to Ignored value --- CHANGELOG.md | 1 + flatcamGUI/GUIElements.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91511416..831e2286 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta - added new FlatCAM Tool: Corner Markers Tool which will add line markers in the selected corners of the bounding box of the targeted Gerber object - added a menu entry in Menu -> View for Toggle HUD +- solved the issue with the GUI in the Notebook being expanded too much in width due of the FCDoubleSpinner and FCSpinner sizeHint by setting the sizePolicy to Ignored value 16.05.2020 diff --git a/flatcamGUI/GUIElements.py b/flatcamGUI/GUIElements.py index 7b9b38f4..2d6a6c86 100644 --- a/flatcamGUI/GUIElements.py +++ b/flatcamGUI/GUIElements.py @@ -684,6 +684,8 @@ class FCSpinner(QtWidgets.QSpinBox): self.setAlignment(align_val) self.prev_readyToEdit = True + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred) + self.setSizePolicy(sizePolicy) def eventFilter(self, object, event): if event.type() == QtCore.QEvent.MouseButtonPress and self.prev_readyToEdit is True: @@ -816,6 +818,8 @@ class FCDoubleSpinner(QtWidgets.QDoubleSpinBox): self.setAlignment(align_val) self.prev_readyToEdit = True + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred) + self.setSizePolicy(sizePolicy) def on_edit_finished(self): self.clearFocus()