Giter Site home page Giter Site logo

Comments (11)

dualbios avatar dualbios commented on May 16, 2024 1

I will investigate it soon. I think the problem is in using the wrong screen size method.

from toastnotifications.

rileybwesley avatar rileybwesley commented on May 16, 2024

I am experiencing the same. Any resolution?

from toastnotifications.

dualbios avatar dualbios commented on May 16, 2024

Both monitors has the same resolution but the resolution is 125%.

from toastnotifications.

b-mi avatar b-mi commented on May 16, 2024

I tried it on system with two displays, window 10, resolutiion 100% and 100%, 100% and 125%, 125% and 125% and positions was correct. Need more informations about problem.
http://i.imgur.com/U3DDetY.png

from toastnotifications.

dualbios avatar dualbios commented on May 16, 2024

there is reproduced from my side.
the "shift" effect become bigger when window moved to right side of monitor.
if main window placed near left side then it looks ok.
i will investigate.

from toastnotifications.

b-mi avatar b-mi commented on May 16, 2024

I cannot reproduce this problem on two displays. I moved window on various location on displays and I created messages - without shift. What version of windows do you use?

from toastnotifications.

rafallopatka avatar rafallopatka commented on May 16, 2024

Hi, this bug exist, this is related with dpi and calculations between windows pixels + wpf virtual pixels and dpi. And to be honest I have no idea how to fix that, I spend a lot of time on that problem. Its related to #33

This should happen only with WindowPositionProvider

from toastnotifications.

b-mi avatar b-mi commented on May 16, 2024

.net framework 4.6.2 has this update, which may help with problem with DPI:

"Per-monitor DPI To support the recent proliferation of high-DPI and hybrid-DPI environments for WPF apps, WPF in the .NET Framework 4.6.2 enables per-monitor awareness. See the samples and developer guide on GitHub for more information about how to enable your WPF app to become per-monitor DPI aware."

ToastNotification can be compiled to .net framework 4.6.2. May be help.

from toastnotifications.

rafallopatka avatar rafallopatka commented on May 16, 2024

Hey,

Unfortunatelly it's not an option to upgrade ToastNotifications to .NET 4.6.2, because there are already existing projects (especialy mine :) ) which uses this library, and they cannot upgrade .NET framework because of some restrictions.

I think there must be a way to do these calculations, maybe there is a way to extract formula from .NET 4.6.2 :)

Thanks for help & Best regards

from toastnotifications.

ZmorzynskiK avatar ZmorzynskiK commented on May 16, 2024

I might have found a solution, please check #57

from toastnotifications.

rafallopatka avatar rafallopatka commented on May 16, 2024

@ZmorzynskiK fixed that, in my test it worked in different dpi and resolutions. and mixed configurations on two displays, dragging window from one to another.

Thank you for help, this is released in nuget v2.2.5

from toastnotifications.

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.