mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-24 02:00:55 +08:00
preview size, continued
This commit is contained in:
@@ -92,7 +92,10 @@ namespace QuickLook.Plugin.VideoViewer
|
||||
windowSize.Width = Math.Max(def.Width, windowSize.Width);
|
||||
windowSize.Height = Math.Max(def.Height, windowSize.Height);
|
||||
|
||||
context.SetPreferredSizeFit(windowSize, 0.6);
|
||||
if (!probe.HasVideo())
|
||||
context.PreferredSize = def;
|
||||
else
|
||||
context.SetPreferredSizeFit(windowSize, 0.6);
|
||||
context.TitlebarOverlap = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user