Ignore _TabRenderer.SetSize when new size is the same as old size.

This commit is contained in:
Alexander Maryanovsky
2020-07-30 11:31:00 +03:00
parent ca488089fd
commit 676794baed

View File

@@ -402,6 +402,10 @@ class _TabRenderer:
width = max(width, self.min_width)
height = max(height, self.min_height)
cur_width, cur_height = self.tab_size
if (width == cur_width) and (height == cur_height):
return
self.tab_size = (width, height)
self.InitTab()