Giter VIP home page Giter VIP logo

Comments (4)

github-actions avatar github-actions commented on June 13, 2024

This is your first time submitting an issue with UVtools 🥳Please review your issue and ensure that the submit template was followed, the information is complete, and not related to any other open issue. It will be reviewed shortly. Debugging is very important and make the program better. Thanks for contributing and making the software better! 🙌

from uvtools.

sn4k3 avatar sn4k3 commented on June 13, 2024

I have only two monitors with different resolution, and I can't reproduce this. Moving UVtools to secondary monitor and open a tool window results in correct behavior: Tool window open center in same monitor as UVtools main window.

image

Every window is set to spawn at center of its parent(Main window), so what happen with you is unexpected.
However, this is out of UVtools scope, the UI Framework (Avalonia) is who manage the spawns, start positions, scales, etc. While is possible to move the window by code, that is not what we want.
As you can reproduce the bug, I recommend you open the issue here: https://github.com/AvaloniaUI/Avalonia/issues

One thing you can try: Do not maximize the main window, keep it smaller than your monitor resolution, open a tool, does it produce same effect?

For UVtools open in the last used monitor you need to change settings:

image

If still have problems, you can unlock windows to able to resize them, and that will fix the cut content when you resize them:

image

from uvtools.

p0916 avatar p0916 commented on June 13, 2024

Thank you for the quick reply! No matter the settings I change in uvtools, the dialog boxes will only open in which ever monitor is set to "main display" within windows. uvtools, itself, will also not open in the last position it was closed if it was closed outside of the main display. This seems to be a windows and/or Avalonia issue.

My apologies as I was unaware of Avalonia and this appears to be an external bug not directly related to uvtools. I appreciate the help!

from uvtools.

sn4k3 avatar sn4k3 commented on June 13, 2024

Avalonia main window always open on primary monitor or from where it got triggered (If you create a shortcut on that monitor it should spawn on that monitor). UVtools then reposition the main window based on last coordinates (If you have those checkboxes on). After quitting it save window last coordinates and restore on next startup. It work on my setup so I guess the problem is in that configuration. Can you try to position all screens landscape and side by side (Just in windows settings) and try?

https://github.com/sn4k3/UVtools/blob/8d852a9a02f992d3bf3b188b0bff9bbd1881f8b7/UVtools.UI/Windows/ToolWindow.axaml#L15C9-L15C44

WindowStartupLocation="CenterOwner"

However the tool window should spawn in center of its parent, so I really think it wroth to open the issue on their side.
Because it open in other monitor, the tool window gets the size and scale of that monitor. Thats why you need to check the resize option and resize it after all to fix it wrong auto-size.

from uvtools.

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.