Skip to content
This repository was archived by the owner on Apr 17, 2020. It is now read-only.
This repository was archived by the owner on Apr 17, 2020. It is now read-only.

slider width in vbox #16

@korsbo

Description

@korsbo

Hi,

I have been playing around with InteractNext and WebIO. One issue that I have come across in Juno is that the slider width becomes imperceptibly small when I use vbox.

using DifferentialEquations
using Plots
using InteractNext
using WebIO
using CSSUtil

ode = @reaction_network Test begin
    p, 0 --> x
    d, x --> 0 
end p d

function plot_sim(ode, p::Vector{Float64})
    prob = ODEProblem(ode, fill(0., length(ode.syms)), (0.,10.), p)
    sol = solve(prob)
    plot(sol)
end

sliders = [slider(0.1:0.01:1, label="$p") for p in ode.params]    

iplot = map((x...)->plot_sim(ode, collect(x)), observe.(sliders)...)

ui = vbox(sliders..., iplot)

interactnext_issue

I have tried playing with CSSUtils directly:

using Measures
container(map(CSSUtil.render, sliders))(style("display" => "flex", "flex-direction"=>"column", "width"=>1000px))

but it does not help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions