tullaCC

tullaCC

198k Downloads

MIN_SCALE isn't working

nirp opened this issue ยท 1 comments

commented

Seems that some CDs bypass the MIN_SCALE check in Timer_OnSizeChanged, I 'solved' it by adding the following under Timer_OnUpdate

if(self:GetParent():GetWidth() / ICON_SIZE < MIN_SCALE) then
self.text:Hide()
self:SetScript('OnUpdate', nil)
return;
end;

commented

I'm thinking that OnSizeChanged does not like to be triggered if the frame is hidden. This should be fixed in the latest one.