Skip to content

Broken placement when putting SnarlWidget into a subcontainer of a Window #80

@jkneer

Description

@jkneer

I'm trying to mitigate the problems described in #78.

Changed invokation from:
pipeline.show(&mut PipelineViewer, pipeline_style, self.title.clone(), ui,);

to:

SnarlWidget::new()
.id(egui::Id::new(self.title.clone()))
.style(*pipeline_style)
.show(pipeline, &mut PipelineViewer, ui);

After the update to 0.8.0; I had the graph tied to the background instead to the window (#78) and the scaling was off by at least a factor of 2 - all other egui elements being rendered normally.

Changing to the Widget results in the graphs (one for each window) being drawn on the central main pane that I draw the windows on and all windows being scaled down.

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