Skip to content

Commit

Permalink
fix incorrectly resolved merge conflict (#1911)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed May 11, 2022
1 parent 6e35aad commit 4758576
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/makielayout/blocks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4758576

Please sign in to comment.