View Single Post
04/27/14, 05:35 AM   #3
Fathis Ules
Thief Guild Master
 
Fathis Ules's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 42
You don't see it bugged because you don't make use of it

Even when the devs uses it, they have it also buggy because when they write

Lua Code:
  1. function ChatContainer:UpdateScrollVisibility()
  2.     local visible = self.currentBuffer:GetNumVisibleLines()
  3.     local history = self.currentBuffer:GetNumHistoryLines()
  4.     local hide = history <= visible
  5.  
  6.  
  7. self.scrollbar:SetHidden(hide)
  8. self.scrollUpButton:SetHidden(hide)
  9. self.scrollDownButton:SetHidden(hide)
  10. self.scrollEndButton:SetHidden(hide)
  11. end

You will notice the visibility of the slider update perfectly if no lines are wrapped, but as soon as you have many wrapped lines, the slider will be hidden when it should be visible or vice versa

The same code the devs are using works perfectly in Wow because the GetNumHistoryLines() is very well implemented under wow

In Eso they just workaround this weakness by adding a larger value to the slider bar so you can slide at a larger value than what is inside the textbuffer but that's just an ugly workaround they made

Last edited by Fathis Ules : 04/27/14 at 05:47 AM.
  Reply With Quote