diff --git a/src/makielayout/blocks.jl b/src/makielayout/blocks.jl index e00c253c140..b10678a7fd3 100644 --- a/src/makielayout/blocks.jl +++ b/src/makielayout/blocks.jl @@ -347,7 +347,14 @@ function _block(T::Type{<:Block}, fig_or_scene::Union{Figure, Scene}, suggestedbbox = bbox ) - blockscene = Scene(topscene, camera = campixel!) + blockscene = Scene( + topscene, + # the block scene tracks the parent scene exactly + # for this it seems to be necessary to zero-out a possible non-zero + # origin of the parent + lift(Makie.zero_origin, topscene.px_area), + camera = campixel! + ) # create base block with otherwise undefined fields b = T(fig_or_scene, lobservables, blockscene)