From 69dcd71723236f574364818f61da49ee536becfc Mon Sep 17 00:00:00 2001 From: oheil Date: Sun, 19 Jan 2020 22:44:58 +0100 Subject: [PATCH] a minimal resizable container for the container size problem --- docs/make.jl | 12 +++++++---- src/rendering/render.jl | 44 +++++++++++++++++++++++++++++++++++++---- 2 files changed, 48 insertions(+), 8 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index f3f224ff..f587408e 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -2,18 +2,22 @@ using Documenter, VegaLite, UUIDs function Base.show(io::IO, m::MIME"text/html", v::VegaLite.VLSpec) divid = string("vl", replace(string(uuid4()), "-"=>"")) - print(io, "
") + print(io, "
") print(io, "") + print(io, ",{mode:'vega-lite'}).catch(console.warn);})") + print(io, "") + print(io, "") end function Base.show(io::IO, m::MIME"text/html", v::VegaLite.VGSpec) divid = string("vg", replace(string(uuid4()), "-"=>"")) - print(io, "
") + print(io, "
") print(io, "") + print(io, ",{mode:'vega'}).catch(console.warn);})") + print(io, "") + print(io, "") end makedocs( diff --git a/src/rendering/render.jl b/src/rendering/render.jl index 2163b3e2..92e76e99 100644 --- a/src/rendering/render.jl +++ b/src/rendering/render.jl @@ -26,7 +26,7 @@ function writehtml_full(io::IO, spec::VLSpec; title="VegaLite plot") -
+