From 5b47866d46af7c39e65ea983e74addf3d023518d Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 26 Jun 2023 18:39:53 -0700 Subject: [PATCH] Auto-size row labels for long strings This makes us automatically size the row labels after building the memory editor in case the driver has very long special memory labels. Related to #10478 --- chirp/wxui/memedit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/chirp/wxui/memedit.py b/chirp/wxui/memedit.py index b6b24aec3..d8b3cfcfb 100644 --- a/chirp/wxui/memedit.py +++ b/chirp/wxui/memedit.py @@ -1659,6 +1659,7 @@ def update_font(self, refresh=True): self.refresh() wx.CallAfter(self._grid.AutoSizeColumns, setAsMin=False) wx.CallAfter(self._grid.AutoSizeRows, setAsMin=False) + wx.CallAfter(self._grid.SetRowLabelSize, wx.grid.GRID_AUTOSIZE) def cb_copy(self, cut=False): rows = self.get_selected_rows_safe()