i want to set a window with a small innersize and no decoration
- Dominant language
- Rust
- Stars
- 30.6k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 72
Description
[patch.crates-io]
eframe = { features = [
"default",
"__screenshot", # __screenshot is so we can dump a screenshot using EFRAME_SCREENSHOT_TO
"persistence"
] }
# For image support:
egui_extras = { features = ["default", "image"] }
env_logger = { version = "0.10", default-features = false, features = [
"auto-color",
"humantime",
] }
**Describe the bug**
when i run the app,the window is created in a correct size but after about 0.5s the size change automatically,it seems like the width of the minimum size of the decoration bar.
the window finnally become:
**To Reproduce**
just run the example of helloworld on windows 11, try to set the decoration with false and the innersize with [50.0,50.0]
` let options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default().with_inner_size([50.0, 50.0]).with_decorations(false).with_min_inner_size([50.0,50.0]),
persist_window: false,
..Default::default()
};`
**Expected behavior**
i want to create a window with no decoration and it's innersize should be [50.0,50.0].
**Desktop (please complete the following information):**
- OS: windows 11
**Additional context**
Contributor guide
Research direction
Reproduce the issue in the Windows 11 hello-world example using NativeOptions, ViewportBuilder, with_inner_size, with_decorations(false), and with_min_inner_size([50.0, 50.0]). Start by tracing native viewport creation and the delayed resize; done means an undecorated window remains at an inner size of 50×50 pixels.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100