johnnyshankman / hihat

A free & minimalist offline music player for OSX audiophiles :: Based on iTunes circa 2002
MIT License
10 stars 0 forks source link

Minor: Resize Too Quickly Bug #38

Closed johnnyshankman closed 2 weeks ago

johnnyshankman commented 3 weeks ago

Issue

Sometimes if you resize hihat's window too quickly the static player ends up slightly sunken down too low. If you resize again just slightly slower it fixes itself. I genuinely can't recreate it today in my current version so I'm wonder if it's somehow only an issue when the GPU is being heavily taxed by other applications. Potentially my latest optimizations to the store and window height/width provider fixed it. Unsure.

If I spot it again I'll definitely take a screenrecording and come back to fix.

Potential Cause

My thinking here is that the static player element, the library list element, and the album art element are resizing in a different order than usual due to [fill in the blank here] and so the library list is miscalculating its height. That then pushes the static player down lower.

Potential Solves

Better use of the store for passing around height and width, that way it's more clear how the cascade flows. Then patch up the cascade by using time offsets etc.