improve:aovidfullsreen
This commit is contained in:
@@ -1583,30 +1583,47 @@ namespace Ink_Canvas
|
|||||||
|
|
||||||
if (!PosXCaculatedWithTaskbarHeight)
|
if (!PosXCaculatedWithTaskbarHeight)
|
||||||
{
|
{
|
||||||
// 如果任务栏高度为0(隐藏状态),则使用固定边距
|
if (Settings.Advanced.IsEnableAvoidFullScreenHelper && BtnPPTSlideShowEnd.Visibility == Visibility.Visible)
|
||||||
if (toolbarHeight == 0)
|
|
||||||
{
|
{
|
||||||
pos.Y = screenHeight - MarginFromEdge * ViewboxFloatingBarScaleTransform.ScaleY;
|
var workingAreaHeight = Screen.FromHandle(windowHandle).WorkingArea.Height / dpiScaleY;
|
||||||
LogHelper.WriteLogToFile($"任务栏隐藏,使用固定边距: {MarginFromEdge}");
|
pos.Y = workingAreaHeight - MarginFromEdge * ViewboxFloatingBarScaleTransform.ScaleY;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pos.Y = screenHeight - MarginFromEdge * ViewboxFloatingBarScaleTransform.ScaleY;
|
// 如果任务栏高度为0(隐藏状态),则使用固定边距
|
||||||
|
if (toolbarHeight == 0)
|
||||||
|
{
|
||||||
|
pos.Y = screenHeight - MarginFromEdge * ViewboxFloatingBarScaleTransform.ScaleY;
|
||||||
|
LogHelper.WriteLogToFile($"任务栏隐藏,使用固定边距: {MarginFromEdge}");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pos.Y = screenHeight - MarginFromEdge * ViewboxFloatingBarScaleTransform.ScaleY;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (PosXCaculatedWithTaskbarHeight)
|
else if (PosXCaculatedWithTaskbarHeight)
|
||||||
{
|
{
|
||||||
// 如果任务栏高度为0(隐藏状态),则使用固定高度
|
if (Settings.Advanced.IsEnableAvoidFullScreenHelper && BtnPPTSlideShowEnd.Visibility == Visibility.Visible)
|
||||||
if (toolbarHeight == 0)
|
|
||||||
{
|
{
|
||||||
pos.Y = screenHeight - ViewboxFloatingBar.ActualHeight * ViewboxFloatingBarScaleTransform.ScaleY -
|
var workingAreaHeight = Screen.FromHandle(windowHandle).WorkingArea.Height / dpiScaleY;
|
||||||
3 * ViewboxFloatingBarScaleTransform.ScaleY;
|
pos.Y = workingAreaHeight - ViewboxFloatingBar.ActualHeight * ViewboxFloatingBarScaleTransform.ScaleY -
|
||||||
LogHelper.WriteLogToFile($"任务栏隐藏,使用固定高度: {ViewboxFloatingBar.ActualHeight}");
|
ViewboxFloatingBarScaleTransform.ScaleY * 3;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pos.Y = screenHeight - ViewboxFloatingBar.ActualHeight * ViewboxFloatingBarScaleTransform.ScaleY -
|
// 如果任务栏高度为0(隐藏状态),则使用固定高度
|
||||||
toolbarHeight - ViewboxFloatingBarScaleTransform.ScaleY * 3;
|
if (toolbarHeight == 0)
|
||||||
|
{
|
||||||
|
pos.Y = screenHeight - ViewboxFloatingBar.ActualHeight * ViewboxFloatingBarScaleTransform.ScaleY -
|
||||||
|
3 * ViewboxFloatingBarScaleTransform.ScaleY;
|
||||||
|
LogHelper.WriteLogToFile($"任务栏隐藏,使用固定高度: {ViewboxFloatingBar.ActualHeight}");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pos.Y = screenHeight - ViewboxFloatingBar.ActualHeight * ViewboxFloatingBarScaleTransform.ScaleY -
|
||||||
|
toolbarHeight - ViewboxFloatingBarScaleTransform.ScaleY * 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user