From 1dcbadea20149c43d49764afd3fe8b39b76998a9 Mon Sep 17 00:00:00 2001 From: Peter Sobolewski <76622105+psobolewskiPhD@users.noreply.github.com> Date: Mon, 6 May 2024 09:37:27 -0400 Subject: [PATCH] refresh when canvas_size_limits are changed (#6834) # References and relevant issues If you change `canvas_size_limits` programmatically, nothing happens. You need to interact with the canvas. This is a bit confusing when using a notebook, ipython, etc. because it appears it doesn't work or the size limits are not correct. # Description Uses `self.node.update()` in ` _on_canvas_size_limits_change` --------- Co-authored-by: Lorenzo Gaifas --- napari/_vispy/layers/points.py | 1 + 1 file changed, 1 insertion(+) diff --git a/napari/_vispy/layers/points.py b/napari/_vispy/layers/points.py index 8dff8b1d6e3..af9a70bad53 100644 --- a/napari/_vispy/layers/points.py +++ b/napari/_vispy/layers/points.py @@ -204,6 +204,7 @@ def _on_canvas_size_limits_change(self): low + scaled_highlight, high + scaled_highlight, ) + self.node.update() def reset(self): super().reset()