Ignore _TabRenderer.SetSize when new size is the same as old size.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user