jotpluggler: fix bug with char width after scaling text (#36154)

fix bug with char width after scaling text
This commit is contained in:
Jimmy
2025-09-13 00:35:12 -07:00
committed by GitHub
parent 3e0dd06374
commit 04a26ada69

View File

@@ -67,7 +67,7 @@ class DataTree:
with self._ui_lock:
if self._char_width is None:
if size := dpg.get_text_size(" ", font=font):
self._char_width = size[0]
self._char_width = size[0] / 2 # we scale font 2x and downscale to fix hidpi bug
if self._new_data:
self._process_path_change()