[#2595] Second Attempt - Treeview Clipping

This commit is contained in:
David Sangrey committed 2026-01-27 16:28:07 -05:00
1 parent a02eda8135
commit 4c9b2bbba6
1 file changed
+6
+6
View File
@@ -13,6 +13,7 @@ import sys
import webbrowser
import tkinter as tk
from tkinter import ttk
import tkinter.font as tkfont
from PIL import Image, ImageTk
from typing import Callable, cast
import requests
@@ -173,6 +174,11 @@ class PluginBrowserMixIn:
height=12,
)
# Configure row height to prevent text clipping
row_font = tkfont.Font(family='TkDefaultFont')
style = ttk.Style()
style.configure("Treeview", rowheight=int(row_font.metrics()['linespace'] * 1.1))
self.plugins_tree.heading(
"name",
# LANG: Plugin Browser Plug Name