Browse Source

fix(splitter): process sizes in setOrientation() (#601)

pull/605/head
slook 3 weeks ago committed by GitHub
parent
commit
b07a5bc5e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      libs/pyTermTk/TermTk/TTkWidgets/splitter.py

3
libs/pyTermTk/TermTk/TTkWidgets/splitter.py

@ -168,6 +168,9 @@ class TTkSplitter(TTkContainer):
if orientation == self._orientation: return
if orientation not in (TTkK.HORIZONTAL, TTkK.VERTICAL): return
self._orientation = orientation
w,h = self.size()
b = 2 if self._border else 0
self._processRefSizes(w-b,h-b)
self._updateGeometries()
def clean(self) -> None:

Loading…
Cancel
Save