MacEnhance/MacForge

The preview location in DockMate does not account for the dock's position on the screen (bottom, left, or right)

k3vob opened this issue · 4 comments

k3vob commented

Bug Report

Current Behavior
The DockMate plugin is only designed to work correctly when the dock is located at the bottom of the screen. If the dock is positioned on the left or right of the screen, there is some unwanted behaviour.

For example, the previews can be shown 50px from the dock. If the dock is at the bottom of the screen, this would mean that the preview will be 50px above the dock. However, when the dock is on the left side of the screen, one would expect this offset to be to the right side of the dock, but it is still an offset above the icon.

Even more annoyingly, since the preview now appears above the icon, and not to its side, if I then move my mouse upwards to move over the preview, the mouse is actually moving over another icon in the dock, so the preview then changes to this other icon. This is super annoying with the Spotify preview where I want to pause or skip a song, but as I move my mouse to the Spotify preview, the preview changes to that of the icon above Spotify.

To Reproduce
Set the Mac's dock to the left of the screen and then notice the behaviour outlined above.

Expected behavior/code
I would expect the locations of the preview to be relative to where on the screen the dock is placed. If the dock is at the bottom, then the previews should be placed above the icons as it is now. However, if the dock is at the left or right of the screen then I would expect the previews to be placed to the right or left of the icons, respectively.

Screenshots
image

Environment

  • MacForge version(s): 1.0.8
  • OS version: 11.0.1
  • Plugins: DockMate

Hmm that's odd. There is also definitely a bug with the Text being black on black there. I'll look into it.

Okay I see what the issue is, has to do with the orientation. It'll be fixed in the next version.

This is fixed in DockMate 0.8+

I think the bug is not solved....

Bildschirmaufnahme 2022-11-03 14 05 39