Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #156 from Rainrider/classicons

classicons: allow layouts to properly size and position on initial update
  • Loading branch information...
commit 32ccacfc90dbdf0a5e2aefa39ea0e0383755c674 2 parents 7741dc2 + 2703055
@haste authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 elements/classicons.lua
View
5 elements/classicons.lua
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.