Merge pull request #2247 from m-sasha/fast-tabs-resize

Ignore _TabRenderer.SetSize when new size is the same as old size
This commit is contained in:
Anton Vorobyov
2020-07-31 11:58:35 +03:00
committed by GitHub

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()