From 3b5b1d850a9bd20089c89f7ce68ee77d4645e410 Mon Sep 17 00:00:00 2001 From: joten Date: Wed, 13 Apr 2016 18:53:59 +0200 Subject: [PATCH] fixed bug related to the position of the bar ... when it is not visible at start --- src/Monitor.ahk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Monitor.ahk b/src/Monitor.ahk index bfd38a1..d01cf2c 100644 --- a/src/Monitor.ahk +++ b/src/Monitor.ahk @@ -186,14 +186,14 @@ Monitor_getWorkArea(m) { } bHeight := Round(Bar_height / Config_scalingFactor) bTop := 0 - If Monitor_#%m%_showBar { - If (Config_verticalBarPos = "top") Or (Config_verticalBarPos = "tray") And Not Monitor_#%m%_taskBarClass { - bTop := monitorTop + If (Config_verticalBarPos = "top") Or (Config_verticalBarPos = "tray") And Not Monitor_#%m%_taskBarClass { + bTop := monitorTop + If Monitor_#%m%_showBar monitorTop += bHeight - } Else If (Config_verticalBarPos = "bottom") { - bTop := monitorBottom - bHeight + } Else If (Config_verticalBarPos = "bottom") { + bTop := monitorBottom - bHeight + If Monitor_#%m%_showBar monitorBottom -= bHeight - } } Monitor_#%m%_height := monitorBottom - monitorTop