Khiro95 / Awqat-Salaat

A simple Windows widget to show the time of the next prayer alongside a countdown on the taskbar.
MIT License
47 stars 2 forks source link

Alignment issue #17

Closed sfksuperman closed 2 months ago

sfksuperman commented 3 months ago

Zoom the pic and see that the Asr and it's time is a little bit up than the After and it's time. image

Khiro95 commented 3 months ago

Nice catch. My first guess is that there could be some rounding issue when the size of UI element is calculated. I will check and see.

sfksuperman commented 3 months ago

https://github.com/Khiro95/Awqat-Salaat/issues/13#issuecomment-2120457943

I am not sure whether it is caused by Network Monitor widget or this widget because when PC starts, all elements in the taskbar tries to load themselves and adjust and that's where it sometimes (not always but often) aligned in this way that they overlapped to each other. But they Re-Position button solves the problem anyhow!

Khiro95 commented 3 months ago

@sfksuperman Unfortunately, that's the main issue with the widget because on Windows 11 there is no program to manage the position and alignment of the widgets inside the taskbar. So each widget has to take care of itself :(

And as far as I can tell, the Traffic Monitor widget changes its size dynamically to make its displayed data fits inside the widget. With that being said, the only real solution for such cases is to give the widget a manual offset on the taskbar (https://github.com/Khiro95/Awqat-Salaat/issues/10#issuecomment-2083234935)

I really wish Microsoft brings back Deskband feature to Windows 11 or provide an equivalent alternative, the whole overlapping and positioning issues would disappear.

Khiro95 commented 2 months ago

Fixed in v3.2.