Giter Site home page Giter Site logo

Comments (6)

amrbashir avatar amrbashir commented on July 22, 2024

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.

gusxodnjs avatar gusxodnjs commented on July 22, 2024

@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?

  • macos
    Monosnap screencast 2024-07-01 10-58-11

  • windows

bandicam.2024-07-01.10-53-35-018.mp4

from tauri.

amrbashir avatar amrbashir commented on July 22, 2024

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.

gusxodnjs avatar gusxodnjs commented on July 22, 2024

@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 avatar amrbashir commented on July 22, 2024

@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.

gusxodnjs avatar gusxodnjs commented on July 22, 2024

@amrbashir
Thank you for your reply.

from tauri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.