diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cba5174..1c0c46e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ CHANGELOG for FlatCAM beta - Milling Tool - finished the UI and also the button handlers in the Geometry and Excellon objects Properties UI - Milling Tool - fixed the situation when launching the Tool but there is no object loaded - Milling Tool - made sure that on target object change the UI is build again +- Geo Editor - Text sub-tool - fixed font size control not shown; fixes issue #470 12.11.2020 diff --git a/appEditors/AppGeoEditor.py b/appEditors/AppGeoEditor.py index 3d48f546..e78b54f1 100644 --- a/appEditors/AppGeoEditor.py +++ b/appEditors/AppGeoEditor.py @@ -286,7 +286,10 @@ class TextInputTool(AppTool): # pass # Font size - self.font_size_cb = FCComboBox() + + hlay = QtWidgets.QHBoxLayout() + + self.font_size_cb = FCComboBox(policy=False) self.font_size_cb.setEditable(True) self.font_size_cb.setMinimumContentsLength(3) self.font_size_cb.setMaximumWidth(70) @@ -296,11 +299,9 @@ class TextInputTool(AppTool): '32', '36', '40', '44', '48', '54', '60', '66', '72', '80', '88', '96'] - for i in font_sizes: - self.font_size_cb.addItem(i) + self.font_size_cb.addItems(font_sizes) self.font_size_cb.setCurrentIndex(4) - hlay = QtWidgets.QHBoxLayout() hlay.addWidget(self.font_size_cb) hlay.addStretch()