mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-18 02:52:42 +03:00
[#2604] Prevent UI Scaling Wiping Out Tree
This commit is contained in:
1 file changed
+3
-2
+3
-2
@@ -172,12 +172,13 @@ class PluginBrowserMixIn:
|
||||
show="headings",
|
||||
selectmode="browse",
|
||||
height=12,
|
||||
style="PluginBrowser.Treeview"
|
||||
)
|
||||
|
||||
# Configure row height to prevent text clipping
|
||||
row_font = tkfont.Font(family='TkDefaultFont')
|
||||
row_font = tkfont.nametofont('TkDefaultFont')
|
||||
style = ttk.Style()
|
||||
style.configure("Treeview", rowheight=int(row_font.metrics()['linespace'] * 1.1))
|
||||
style.configure("PluginBrowser.Treeview", rowheight=int(row_font.metrics()['linespace'] * 1.1))
|
||||
|
||||
self.plugins_tree.heading(
|
||||
"name",
|
||||
|
||||
Reference in new issue
Block a user