I would suggest doing floor(ChatFrame1:GetHeight() + 0.5), so that if it returns 179.99999943743243 you will end up with 180, which is probably what you want.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
|