DioxusLabs / DioxusLabs/dioxus
html root element not aligned properly with window inner size [Desktop wayland]
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
The size of the html root element of the Dioxus desktop app does not match the inner size of the display window.
Steps to reproduce the behavior:
If I draw a line around the maximized html element, I do not see the bottom border (screenshot below).
```css
html {
border-width: 1px;
border-style: dashed;
border-color: yellow;
height: 100%;
}
```

If I reduce the height of the html element to 99%, the bottom border is visible in some circumstances:
- With the default window size it is visible:

- However if I shrink the window it disappears:

- And when I increase the vertical size of the window the distance between the bottom of the window and the bottom border grows:

**Expected behavior**
The size of the maximized html root element perfectly matches the size of the window at all times.
**Environment:**
- Dioxus version: 0.6.3-main
- Rust version: rustc 1.84.1 (e71f9a9a9 2025-01-27) stable
- OS info:
```
System:
Host: desktop1 Kernel: 6.13.2-arch1-1 arch: x86_64 bits: 64
Desktop: KDE Plasma v: 6.3.0 Distro: Arch Linux
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT
/ 6900 XT] driver: amdgpu v: kernel
Device-2: Advanced Micro Devices [AMD/ATI] Raphael driver: amdgpu
v: kernel
Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.5
compositor: kwin_wayland driver: X: loaded: amdgpu
unloaded: modesetting,radeon dri: radeonsi gpu: amdgpu resolution:
1: 2560x1440~165Hz 2: 1920x1080~60Hz
API: EGL v: 1.5 drivers: radeonsi,swrast
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.3.4-arch1.1
renderer: AMD Radeon RX 6800 XT (radeonsi navi21 LLVM 19.1.7 DRM 3.59
6.13.2-arch1-1)
API: Vulkan v: 1.4.303 drivers: N/A surfaces: xcb,xlib,wayland
Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
de: kscreen-console,kscreen-doctor gpu: amdgpu_top,lact wl: wayland-info
x11: xdpyinfo, xprop, xrandr
```
**Questionnaire**
I'm interested in fixing this myself but don't know where to start.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.