Skip to content

Add layouts. #22

@dalejung

Description

@dalejung

Something as simple as a VerticalLayout that gives each Figure equal space and also updates with browser window size changes?

I do somewhat of the equivalent with:

function updateWindow() {
    var width = window.innerWidth - 60;
    var height = window.innerHeight * .40;
    fig.width(width).height(height);
    fig2.height(height/2).width(width);
    focus.width(width);
}

var doit;
window.onresize = function(){
  clearTimeout(doit);
  doit = setTimeout(updateWindow, 100);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions