19b1609 - Change main events to a constant update to fix event issues
[wowui.git] / kehys / frame.lua
index 2409d26..a723f47 100644 (file)
@@ -42,6 +42,7 @@ function addon.NewRaidFrame(parent, width, height, unit, attributes,
     f:Hide(); -- hide frame to have an initial frame:OnShow call
     f:SetWidth(width);
     f:SetHeight(height);
     f:Hide(); -- hide frame to have an initial frame:OnShow call
     f:SetWidth(width);
     f:SetHeight(height);
+    f.barwidth = width - 2; -- 1px padding on both sides
     f:SetAttribute("unit", unit);
     f.unit = unit;
     f.displayed = unit;
     f:SetAttribute("unit", unit);
     f.unit = unit;
     f.displayed = unit;
@@ -50,7 +51,7 @@ function addon.NewRaidFrame(parent, width, height, unit, attributes,
     -- set up periodic updates
     updaters[f] = function()
         if f.updating then
     -- set up periodic updates
     updaters[f] = function()
         if f.updating then
-            CTimerAfter(0.25, updaters[f]);
+            CTimerAfter(0.1, updaters[f]);
             return update(f)
         end
     end
             return update(f)
         end
     end