View Single Post
09/01/15, 02:34 PM   #3
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
By default, in xml code, the ZO_ChatSystem has a set width of 350.
They are not resetting the saved settings.width until after they call SharedChatContainer.LoadSettings(...)

Lua Code:
  1. function ChatContainer:LoadSettings(settings)
  2.     SharedChatContainer.LoadSettings(self, settings)
  3.  
  4.     self.control:ClearAnchors()
  5.     self.control:SetAnchor(settings.point, nil, settings.relPoint, settings.x, settings.y)
  6.     self.control:SetDimensions(settings.width, settings.height)
  7. end

But SharedChatContainer.LoadSettings(...), eventually, calls the SharedChatContainer:PerformLayout(), which is what blocks those tabs & puts them in the overflow container because it still thinks the desired width of the chat window is 350.

The saved settings.width need to be reset before the SharedChatContainer.LoadSettings(...) is called:
Lua Code:
  1. function ChatContainer:LoadSettings(settings)
  2.     self.control:ClearAnchors()
  3.     self.control:SetAnchor(settings.point, nil, settings.relPoint, settings.x, settings.y)
  4.     self.control:SetDimensions(settings.width, settings.height)
  5.    
  6.     SharedChatContainer.LoadSettings(self, settings)
  7. end
Just dump that in a code file & it should fix the problem. Would probably be a good addition to merlights Band-Aid

Last edited by circonian : 09/01/15 at 04:48 PM.
  Reply With Quote