egui icon indicating copy to clipboard operation
egui copied to clipboard

Fix: `Sides` did not apply the layout position correctly.

Open zhatuokun opened this issue 1 year ago • 1 comments

Run this code

        CentralPanel::default().show(ctx, |ui| {
            Sides::new().show(
                ui,
                |ui| {
                    ui.label("1");
                },
                |ui| {
                    ui.label("2");
                },
            );
            Sides::new().show(
                ui,
                |ui| {
                    ui.label("11");
                },
                |ui| {
                    ui.label("22");
                },
            );
            Sides::new().show(
                ui,
                |ui| {
                    ui.label("111");
                },
                |ui| {
                    ui.label("222");
                },
            );
        });

Before

before

After

after

zhatuokun avatar Oct 08 '24 06:10 zhatuokun

Preview available at https://egui-pr-preview.github.io/pr/5232-fix-sides-layout-position Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

github-actions[bot] avatar Oct 08 '24 06:10 github-actions[bot]