From 676794baeda6992e17ecae6ad2535987fde411ba Mon Sep 17 00:00:00 2001 From: Alexander Maryanovsky Date: Thu, 30 Jul 2020 11:31:00 +0300 Subject: [PATCH] Ignore _TabRenderer.SetSize when new size is the same as old size. --- gui/chrome_tabs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/chrome_tabs.py b/gui/chrome_tabs.py index 8ca0f92a0..c1e623900 100644 --- a/gui/chrome_tabs.py +++ b/gui/chrome_tabs.py @@ -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()