You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm very aware that this is a niche use-case, and must admit that I don't have an immediate application for it, but: nesting Scene doesn't provide the desired effect.
To Reproduce
Steps to reproduce the behavior (tested on master 0db56dc):
use eframe::egui::{self,Rect};fnmain() -> eframe::Result{letmut scene_rect = Rect::ZERO;letmut inner_rect = Rect::ZERO;
eframe::run_simple_native("My egui App",Default::default(),move |ctx, _frame| {
egui::CentralPanel::default().show(ctx, |ui| {
ui.label("Outside the scenes");
egui::Scene::new().show(ui,&mut scene_rect, |ui| {
ui.label("Inside first scene");
egui::Frame::canvas(ui.style()).show(ui, |ui| {
egui::Scene::new().show(ui,&mut inner_rect, |ui| {
ui.label("I'm in a nested scene!");});});});});})}
Expected behavior
Ideally, the contents of the sub-scene should be be scaled, transformed, and clipped appropriately.
Screenshots
Additional context
Again, I don't have an immediate use-case for this so it probably shouldn't be a priority.
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm very aware that this is a niche use-case, and must admit that I don't have an immediate application for it, but: nesting
Scene
doesn't provide the desired effect.To Reproduce
Steps to reproduce the behavior (tested on master 0db56dc):
Expected behavior
Ideally, the contents of the sub-scene should be be scaled, transformed, and clipped appropriately.
Screenshots
![Image](https://private-user-images.githubusercontent.com/6164303/409787421-e1a05e30-52a1-46b3-a115-413c7c124570.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NjkyNDksIm5iZiI6MTczOTk2ODk0OSwicGF0aCI6Ii82MTY0MzAzLzQwOTc4NzQyMS1lMWEwNWUzMC01MmExLTQ2YjMtYTExNS00MTNjN2MxMjQ1NzAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTlUMTI0MjI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTVjMDMxOTcwMjQ5MjBkMjBlOTQ5ZTJmODZlZTg1MTJiMGJmMjZhYjk0MWQ0NzM4MWE4NGVjMjNkMGIyMjM3MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.-IrzGof3OUwSuZktKgqpHg_AtqfG1In9sFbTimVf9vs)
Additional context
Again, I don't have an immediate use-case for this so it probably shouldn't be a priority.
The text was updated successfully, but these errors were encountered: