Skip to content

Commit

Permalink
<>[]: <Temporary Size Fix>
Browse files Browse the repository at this point in the history
[Until I can get a better handle]

[#452]
  • Loading branch information
hasii2011 committed Jan 17, 2023
1 parent ed5a7ad commit 81c8b31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pyut/uiv2/PyutApplicationFrameV2.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
from pyut.uiv2.eventengine.Events import UpdateApplicationStatusEvent
from pyut.uiv2.eventengine.Events import UpdateApplicationTitleEvent

HACK_ADJUST_EXIT_HEIGHT: int = 16

class PyutApplicationFrameV2(Frame):
"""
Expand Down Expand Up @@ -227,7 +228,10 @@ def Close(self, force=False):
self._prefs.startupPosition = pos
if self._prefs.overrideProgramExitSize is False:
ourSize: Tuple[int, int] = self.GetSize()
self._prefs.startupSize = Dimensions(ourSize[0], ourSize[1])

# See issue https://github.com/hasii2011/PyUt/issues/452
# I need to check this on a larger monitor;
self._prefs.startupSize = Dimensions(ourSize[0], ourSize[1] - HACK_ADJUST_EXIT_HEIGHT)

self._prefs = cast(PyutPreferences, None)
self._pluginMgr = cast(PluginManager, None)
Expand Down

0 comments on commit 81c8b31

Please sign in to comment.