[bugfix] fix 1px bugs. (まだ発生する)

This commit is contained in:
Sakamoto Shiina
2023-10-13 05:59:14 +09:00
parent f185b2f475
commit 717a56a580
9 changed files with 43 additions and 21 deletions

View File

@@ -13,7 +13,7 @@ from .main_window import createMainWindowWidgets
from .config_window import ConfigWindow
from .ui_utils import _setDefaultActiveTab, getLatestHeight, setGeometryToCenterOfScreen, fadeInAnimation
from utils import callFunctionIfCallable
from utils import callFunctionIfCallable, makeEven
class VRCT_GUI(CTk):
def __init__(self):
@@ -238,8 +238,8 @@ class VRCT_GUI(CTk):
self.update_idletasks()
x_pos = self.winfo_rootx()
y_pos = self.winfo_rooty()
width_new = self.winfo_width()
height_new = self.winfo_height()
width_new = makeEven(self.winfo_width())
height_new = makeEven(self.winfo_height())
self.modal_window.geometry("{}x{}+{}+{}".format(width_new, height_new, x_pos, y_pos))
self.modal_window.lift()