diff --git a/IceBarElement.lua b/IceBarElement.lua index 590d1f2..7838979 100644 --- a/IceBarElement.lua +++ b/IceBarElement.lua @@ -525,6 +525,7 @@ do else self:ResetRotation() end + self:Redraw() end, disabled = function() return not self:IsEnabled() @@ -914,6 +915,8 @@ function IceBarElement.prototype:Redraw() self:CreateFrame() self.frame:SetAlpha(self.alpha) + + self:RepositionMarkers() end @@ -1468,6 +1471,12 @@ function IceBarElement.prototype:NotifyBarOverrideChanged() end end +function IceBarElement.prototype:RepositionMarkers() + for idx=1,#self.Markers do + self:PositionMarker(idx, self.moduleSettings.markers[idx].position) + end +end + function IceBarElement.prototype:AddNewMarker(inPosition, inColor, inHeight) if not self.moduleSettings.markers then self.moduleSettings.markers = {}