Skip to content

Commit 10fe882

Browse files
committed
fix: external pum content size
1 parent 051f566 commit 10fe882

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: editor/popupmenu.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ func (p *PopupMenu) updateFont(font *Font) {
162162
popupItem.digitLabel.SetFont(font.fontNew)
163163
popupItem.menuLabel.SetFont(font.fontNew)
164164
popupItem.infoLabel.SetFont(font.fontNew)
165-
popupItem.kindIcon.SetFixedSize2(font.lineHeight, font.lineHeight)
166-
popupItem.kindwidget.SetFixedWidth(font.lineHeight + editor.config.Editor.Linespace*2)
165+
popupItem.kindIcon.SetFixedSize2(editor.iconSize, editor.iconSize)
166+
margin := editor.config.Editor.Linespace/2 + 2
167+
popupItem.kindwidget.SetFixedWidth(editor.iconSize + margin*2)
167168
}
168169
}
169170

Diff for: editor/workspace.go

+2
Original file line numberDiff line numberDiff line change
@@ -2303,6 +2303,8 @@ func (w *Workspace) guiFont(args string) {
23032303

23042304
w.updateSize()
23052305

2306+
editor.iconSize = int(float64(fontHeight) * 11 / 9)
2307+
23062308
if w.popup != nil {
23072309
w.popup.updateFont(font)
23082310
}

0 commit comments

Comments
 (0)