mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Checking canvas size against .99 to reduce chance of infinite loop.
This commit is contained in:
parent
18c3549f66
commit
147cefba91
1 changed files with 5 additions and 2 deletions
|
@ -625,7 +625,9 @@ class MfxScrolledCanvas:
|
||||||
if self.canvas.busy:
|
if self.canvas.busy:
|
||||||
return
|
return
|
||||||
sb = self.hbar
|
sb = self.hbar
|
||||||
if float(first) <= 0 and float(last) >= 1:
|
# TODO - Setting this to .99 takes the scrollbar size into account.
|
||||||
|
# But there is probably a better way to do it.
|
||||||
|
if float(first) <= 0 and float(last) >= .99:
|
||||||
sb.grid_remove()
|
sb.grid_remove()
|
||||||
self.hbar_show = False
|
self.hbar_show = False
|
||||||
else:
|
else:
|
||||||
|
@ -638,7 +640,8 @@ class MfxScrolledCanvas:
|
||||||
if self.canvas.busy:
|
if self.canvas.busy:
|
||||||
return
|
return
|
||||||
sb = self.vbar
|
sb = self.vbar
|
||||||
if float(first) <= 0 and float(last) >= 1:
|
# TODO - See _setHbar above.
|
||||||
|
if float(first) <= 0 and float(last) >= .99:
|
||||||
sb.grid_remove()
|
sb.grid_remove()
|
||||||
self.vbar_show = False
|
self.vbar_show = False
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue