From 6188d00865a601567de3fd54a7cc904cec861cc1 Mon Sep 17 00:00:00 2001 From: Izakbar Date: Thu, 24 Apr 2025 19:12:19 +0100 Subject: [PATCH] #81 Apply default ZoomAnchor config to existing views on refresh. --- .../Services/Implementation/ThumbnailManager.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Eve-O-Preview/Services/Implementation/ThumbnailManager.cs b/src/Eve-O-Preview/Services/Implementation/ThumbnailManager.cs index bd3c31c..17dd054 100644 --- a/src/Eve-O-Preview/Services/Implementation/ThumbnailManager.cs +++ b/src/Eve-O-Preview/Services/Implementation/ThumbnailManager.cs @@ -444,11 +444,16 @@ namespace EveOPreview.Services } } - // Hide, show, resize and move + // Hide, show, resize and move - update ZoomAnchor setting foreach (KeyValuePair entry in this._thumbnailViews) { IThumbnailView view = entry.Value; + + // update ZoomAnchor regardless + view.ClientZoomAnchor = this._configuration.GetZoomAnchor(view.Title, this._configuration.ThumbnailZoomAnchor); + + if (hideAllThumbnails || this._configuration.IsThumbnailDisabled(view.Title)) { if (view.IsActive) @@ -834,8 +839,6 @@ namespace EveOPreview.Services { this._windowManager.MoveWindow(clientHandle, clientLayout.X, clientLayout.Y, clientLayout.Width, clientLayout.Height); } - - view.ClientZoomAnchor = this._configuration.GetZoomAnchor(clientTitle, this._configuration.ThumbnailZoomAnchor); } private void UpdateClientLayouts()