Background: I am building a multi-page application on Tauri v2
My goal: On some, but not all, pages have the decorations on overlay on the window, no title bar (+ transparency)
Issue: Decorations were floating above the window, out of reach of css
See how the decorations are above the window
This seems to happen whenever decorations were set to false initially (for example in the tauri config) and later set to true
This is how decorations look normally when set to true in tauri config
The problem is that I am trying to set decorations selectively on pages. Some pages will have them and some won't.
Reproduction
Set "decorations": false in the tauri config json and later in JS (for example onMount) call getCurrent().setDecorations(true)
I have also noticed it happen when:
Set "decorations": true in the tauri config json
Set getCurrent().setDecorations(false) on mount
Later in program set getCurrent().setDecorations(true)
Expected behavior
The expected behavior is that the decorations always show up inside the window and never above, regardless of the previous state of the decorations or how often it was toggled true and false.
Describe the bug
Background: I am building a multi-page application on Tauri v2
My goal: On some, but not all, pages have the decorations on overlay on the window, no title bar (+ transparency)
Issue: Decorations were floating above the window, out of reach of css
See how the decorations are above the window
This seems to happen whenever decorations were set to false initially (for example in the tauri config) and later set to true
This is how decorations look normally when set to true in tauri config
The problem is that I am trying to set decorations selectively on pages. Some pages will have them and some won't.
Reproduction
Set
"decorations": false
in the tauri config json and later in JS (for example onMount) callgetCurrent().setDecorations(true)
I have also noticed it happen when:
"decorations": true
in the tauri config jsongetCurrent().setDecorations(false)
on mountgetCurrent().setDecorations(true)
Expected behavior
The expected behavior is that the decorations always show up inside the window and never above, regardless of the previous state of the decorations or how often it was toggled true and false.
Full
tauri info
outputStack trace
No response
Additional context
No response