Skip to content

Commit 7c7299e

Browse files
committed
[__main__] fix vertical header horizontal spacing after font load
Width was not resizing on load of longer strings like "MONO" and last letter was clipped. This change fixes it.
1 parent 88d0219 commit 7c7299e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/slice/__main__.py

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
QGridLayout,
3737
QGroupBox,
3838
QHBoxLayout,
39+
QHeaderView,
3940
QLabel,
4041
QMainWindow,
4142
QPushButton,
@@ -672,7 +673,11 @@ def load_font(self, filepath):
672673

673674
name_table_was_set = self.name_table_model.load_font(self.font_model)
674675
axis_value_table_was_set = self.fvar_table_model.load_font(self.font_model)
676+
675677
self.fvar_table_view.resizeColumnToContents(0)
678+
self.fvar_table_view.verticalHeader().resizeSections(
679+
QHeaderView.ResizeToContents
680+
)
676681

677682
# uncheck all bit flag setting check boxes
678683
self.os2_fsselection_bit_0_checkbox.setChecked(False)

0 commit comments

Comments
 (0)