mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 09:49:07 +00:00
preview size, continued
This commit is contained in:
@@ -92,6 +92,9 @@ namespace QuickLook.Plugin.VideoViewer
|
|||||||
windowSize.Width = Math.Max(def.Width, windowSize.Width);
|
windowSize.Width = Math.Max(def.Width, windowSize.Width);
|
||||||
windowSize.Height = Math.Max(def.Height, windowSize.Height);
|
windowSize.Height = Math.Max(def.Height, windowSize.Height);
|
||||||
|
|
||||||
|
if (!probe.HasVideo())
|
||||||
|
context.PreferredSize = def;
|
||||||
|
else
|
||||||
context.SetPreferredSizeFit(windowSize, 0.6);
|
context.SetPreferredSizeFit(windowSize, 0.6);
|
||||||
context.TitlebarOverlap = true;
|
context.TitlebarOverlap = true;
|
||||||
}
|
}
|
||||||
|
@@ -213,7 +213,7 @@ namespace QuickLook.Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set the size of viewer window and shrink to fit (to screen resolution).
|
/// Set the size of viewer window, scale or shrink to fit (to screen resolution).
|
||||||
/// The window can take maximum (maxRatio*resolution) space.
|
/// The window can take maximum (maxRatio*resolution) space.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="size">The desired size.</param>
|
/// <param name="size">The desired size.</param>
|
||||||
|
Reference in New Issue
Block a user