From ec9ac44dc5728c68d01079ec701b04970a7c28e1 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Tue, 31 Mar 2020 15:24:43 +0200 Subject: [PATCH] Backport PR #16970: tk: Don't resize toolbar during resize event. --- lib/matplotlib/backends/_backend_tk.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/matplotlib/backends/_backend_tk.py b/lib/matplotlib/backends/_backend_tk.py index 80bfa80bc537..c14ee7262933 100644 --- a/lib/matplotlib/backends/_backend_tk.py +++ b/lib/matplotlib/backends/_backend_tk.py @@ -462,9 +462,6 @@ def _get_toolmanager(self): def resize(self, width, height): self.canvas._tkcanvas.configure(width=width, height=height) - if self.toolbar is not None: - self.toolbar.configure(width=width) - def show(self): with _restore_foreground_window_at_end(): if not self._shown: