diff --git a/src/makielayout/blocks.jl b/src/makielayout/blocks.jl index 3d3d70efc79..c6bf0bdb73f 100644 --- a/src/makielayout/blocks.jl +++ b/src/makielayout/blocks.jl @@ -535,7 +535,7 @@ end function init_observable!(@nospecialize(block), key::Symbol, @nospecialize(OT), @nospecialize(value::Observable)) obstype = observable_type(OT) o = Observable{obstype}() - map!(o, value) do v + map!(block.blockscene, o, value) do v convert_for_attribute(obstype, v) end setfield!(block, key, o) diff --git a/src/makielayout/blocks/axis.jl b/src/makielayout/blocks/axis.jl index ccad1873578..169ac3b7f89 100644 --- a/src/makielayout/blocks/axis.jl +++ b/src/makielayout/blocks/axis.jl @@ -255,7 +255,8 @@ function initialize_block!(ax::Axis; palette = nothing) notify(ax.xscale) # 3. Update the view onto the plot (camera matrices) - onany(update_axis_camera, camera(scene), scene.transformation.transform_func, finallimits, ax.xreversed, ax.yreversed, priority = -2) + onany(update_axis_camera, blockscene, camera(scene), scene.transformation.transform_func, finallimits, + ax.xreversed, ax.yreversed; priority=-2) xaxis_endpoints = lift(blockscene, ax.xaxisposition, scene.viewport; ignore_equal_values=true) do xaxisposition, area