Base.show method for RootLayout, to allow dump(::Plot)

This commit is contained in:
yha 2019-09-08 15:14:35 +03:00
parent 4a57f462bc
commit f8ee4da180

View File

@ -217,6 +217,7 @@ bottompad(layout::AbstractLayout) = 0mm
# this is the parent of the top-level layout
struct RootLayout <: AbstractLayout end
Base.show(io::IO, layout::RootLayout) = Base.show_default(io, layout)
Base.parent(::RootLayout) = nothing
parent_bbox(::RootLayout) = defaultbox
bbox(::RootLayout) = defaultbox