When Zoomed In the thumbnail window should always stay on the top

This commit is contained in:
Anton Kasyanov
2016-06-09 01:44:14 +03:00
parent 6c11b2ea95
commit fa4086aba7
2 changed files with 2 additions and 10 deletions

View File

@@ -307,13 +307,13 @@ namespace EveOPreview.UI
IThumbnailView view = this._thumbnailViews[id]; IThumbnailView view = this._thumbnailViews[id];
view.SetOpacity(this._configuration.ThumbnailsOpacity);
if (this._configuration.EnableThumbnailZoom) if (this._configuration.EnableThumbnailZoom)
{ {
this.ThumbnailZoomOut(view); this.ThumbnailZoomOut(view);
} }
view.SetOpacity(this._configuration.ThumbnailsOpacity);
this._isHoverEffectActive = false; this._isHoverEffectActive = false;
} }

View File

@@ -17,7 +17,6 @@ namespace EveOPreview.UI
// This is pure brainless View // This is pure brainless View
// Just somewhat more complex than usual // Just somewhat more complex than usual
private bool _isThumbnailSetUp; private bool _isThumbnailSetUp;
private bool _isTopMost;
private bool _isOverlayVisible; private bool _isOverlayVisible;
private bool _isPositionChanged; private bool _isPositionChanged;
private bool _isSizeChanged; private bool _isSizeChanged;
@@ -34,7 +33,6 @@ namespace EveOPreview.UI
this.IsOverlayEnabled = false; this.IsOverlayEnabled = false;
this._isThumbnailSetUp = false; this._isThumbnailSetUp = false;
this._isTopMost = false;
this._isOverlayVisible = false; this._isOverlayVisible = false;
this._isPositionChanged = true; this._isPositionChanged = true;
@@ -147,14 +145,8 @@ namespace EveOPreview.UI
public void SetTopMost(bool enableTopmost) public void SetTopMost(bool enableTopmost)
{ {
if (this._isTopMost == enableTopmost)
{
return;
}
this.TopMost = enableTopmost; this.TopMost = enableTopmost;
this._overlay.TopMost = enableTopmost; this._overlay.TopMost = enableTopmost;
this._isTopMost = enableTopmost;
} }
public void ZoomIn(ViewZoomAnchor anchor, int zoomFactor) public void ZoomIn(ViewZoomAnchor anchor, int zoomFactor)