fix: anchor title controls outside the animated queue clip
This commit is contained in:
@@ -110,6 +110,9 @@ private enum WindowLayoutCheck {
|
||||
let window = NSApp.windows.first(where: { $0.canBecomeMain && !($0 is NSPanel) }) else { return }
|
||||
if model.compactWindow.isTransitioning || model.isQueueTransitioning {
|
||||
window.layoutIfNeeded()
|
||||
if model.isQueueTransitioning && !sidebarHeaderIsVisible(in: window) {
|
||||
finish("Top-right controls left the window corner during queue animation at step \(step)"); return
|
||||
}
|
||||
if let size = queueVideoSize, let video = model.videoView {
|
||||
guard abs(video.bounds.width - size.width) < 2, abs(video.bounds.height - size.height) < 2 else {
|
||||
finish("Queue animation changed video size at step \(step): \(video.bounds.size), expected \(size)"); return
|
||||
|
||||
Reference in New Issue
Block a user