Skip to content

Commit 41972c6

Browse files
Reduced minimum cell height
1 parent e9445dc commit 41972c6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/robotide/editor/cellrenderer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ def GetBestSize(self, grid, attr, dc, row, col):
6161
# margin = 2 # get border width into account when submitting optimal col size
6262
margin = 0
6363
w, h = _font.GetPixelSize()
64-
h = max( h, 12) # Probably h==0 on MSW, w==0 means width auto
65-
w = max( w, 12)
64+
h = max(h, 8) # Probably h==0 on MSW, w==0 means width auto
65+
w = max(w, 8)
6666
if len(text) > 0:
67-
w_sz = w * len(text) + 2 * w
67+
w_sz = w * len(text) # + 2 * w
6868
else:
69-
return wx.Size(2 * w, h) # self.default_width
69+
return wx.Size(w, h) # self.default_width
7070

7171
if self.auto_fit:
7272
col_width = min(w_sz, col_width)
@@ -79,8 +79,8 @@ def GetBestSize(self, grid, attr, dc, row, col):
7979
text = wordwrap.wordwrap(text, col_width, dc, breakLongWords=False,
8080
margin=margin)
8181
w, h = dc.GetMultiLineTextExtent(text)
82-
h = max( h, 12) # Probably h==0 on MSW, w==0 means width auto
83-
w = max( w, 12)
82+
h = max(h, 8) # Probably h==0 on MSW, w==0 means width auto
83+
w = max(w, 8)
8484
else:
8585
w = col_width
8686
if self.auto_fit:

0 commit comments

Comments
 (0)