Permalink
Browse files

Merge pull request #156 from Rainrider/classicons

classicons: allow layouts to properly size and position on initial update
  • Loading branch information...
2 parents 7741dc2 + 2703055 commit 32ccacfc90dbdf0a5e2aefa39ea0e0383755c674 @haste haste committed Oct 6, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 elements/classicons.lua
View
@@ -157,7 +157,6 @@ do
ClassPowerEnable = function(self)
local element = self.ClassIcons
- element.__max = 4
self:RegisterEvent('UNIT_DISPLAYPOWER', Update)
self:RegisterEvent('UNIT_POWER_FREQUENT', Update)
@@ -175,7 +174,6 @@ do
ClassPowerEnable = function(self)
local element = self.ClassIcons
- element.__max = HOLY_POWER_FULL
self:RegisterEvent('UNIT_DISPLAYPOWER', Update)
self:RegisterEvent('UNIT_POWER', Update)
@@ -194,7 +192,6 @@ do
ClassPowerEnable = function(self)
local element = self.ClassIcons
- element.__max = PRIEST_BAR_NUM_ORBS
self:RegisterEvent('UNIT_DISPLAYPOWER', Update)
self:RegisterEvent('UNIT_POWER_FREQUENT', Update)
@@ -213,7 +210,6 @@ do
ClassPowerEnable = function(self)
local element = self.ClassIcons
- element.__max = 3
self:RegisterEvent('UNIT_DISPLAYPOWER', Update)
self:RegisterEvent('UNIT_POWER_FREQUENT', Update)
@@ -231,6 +227,7 @@ local Enable = function(self, unit)
if(not element) then return end
element.__owner = self
+ element.__max = 0
element.ForceUpdate = ForceUpdate
if(ClassPowerEnable) then

0 comments on commit 32ccacf

Please sign in to comment.