Comments (6)
In v2, I think I can make it using the parent method. But it doesn't seem to work in a Windows environment. And, it seems that the method used in v1 is no longer available. Is that right?
owner_window
have been renamed to just owner
, seems like the documentation for Windows have failed to build but it exists.
You can still use parent method which is more cross-platform, not sure how is it not working for you, could you explain more? and provide a minimal repro
from tauri.
@amrbashir
https://github.com/gusxodnjs/tauri-issues/tree/bug/parent-window
In Windows, the web views created by the parent method act like separate web views. Is there something I missed?
bandicam.2024-07-01.10-53-35-018.mp4
from tauri.
The macOS behavior doesn't have any equivalent on Windows. The nearest thing is Owned windows, which you can read about their behavior here https://learn.microsoft.com/en-us/windows/win32/winmsg/window-features#owned-windows
Closing as this is the intended behavior.
from tauri.
@amrbashir
Thank you, but I think users expect the same behavior for each os when using the way the platform provides it. Can't it be abstracted in Tauri even if the specifications are different for each os?
Finally, how do I implement macos-like behavior in a v2 window environment? Should I change the location of my child's window directly whenever the location of the parent window changes?
from tauri.
@amrbashir Thank you, but I think users expect the same behavior for each os when using the way the platform provides it. Can't it be abstracted in Tauri even if the specifications are different for each os?
I understand the sentiment but not everything can be abstracted to behave the same on each OS.
Finally, how do I implement macos-like behavior in a v2 window environment? Should I change the location of my child's window directly whenever the location of the parent window changes?
You can try to listen for parent move events and update the child location.
from tauri.
@amrbashir
Thank you for your reply.
from tauri.
Related Issues (20)
- [feat] Download file able on mobile. HOT 1
- [bug] error: none of the selected packages contains these features: custom-protocol HOT 2
- [bug] virustotal found 4 suspected vulnerabilities on fresh build on Windows HOT 1
- [bug] `__TAURI__.os.tempdir()` API regression: broken in windows after latest Tauri update HOT 7
- [bug] [macos] [tauri v2] Failed to load resource: the server responded with a status of 400 (Bad Request) ipc://localhost/greet HOT 3
- [bug] Bug in Tauri v2 beta: Tokio spawn in Window Listener Causes Panic HOT 1
- [bug] Signature decoding error: Encoded text cannot have a 6-bit remainder HOT 11
- [bug] Cannot add plugin command permissions on additional webviews HOT 2
- [bug] Tauri builds on macos (x86 and arm64) and windows aarch64 fail with failed to rename binary HOT 1
- [bug] Kaspersky identifies application as trojan HOT 1
- [bug] invoke() in rust - weird behavior if no args provided HOT 1
- Please add support/doc configuration for Vuetify 3.x HOT 1
- [bug] [macos] Redraw when window background color is transparent
- [bug] tauri://drop The event is invalid HOT 1
- [bug] Can show video streams transcoded from RTSP to WebRTC protocol in browser, but not in desktop app.
- [docs] clarify how to build a client which can connect to the public network HOT 2
- [bug] v2 fails to generate signed apk HOT 1
- [bug] [v2]: $APPDATA/$APPCONFIG/... don't get created on Linux
- [bug] Verify signature error: UnexpectedKeyId
- [bug] Adding the "webview" attribute to capabilities does not give plugin permissions on additional webviews
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tauri.