View Single Post
05-26-20, 08:37 AM   #13
sylvanaar
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 92
Originally Posted by Xrystal View Post
Thanks for that independent view of the code.I clearly didn't think outside of the box enough on this one rofl.

As I suspected, that can't be the reason one works and the other doesn't. Both scroll frames have access to the same template with the initial TOPLEFT anchor.

When the fontstrings are created BOTH scroll frames specify the height and width based on the container they are in. This is supposed to be the equivalent of specifying a TOPLEFT and BOTTOMRIGHT anchor system.

However, seeing as I assume it worked, I made the change anyway .. as follows:

Lua Code:
  1. <FontString name = "XrystalUI_ScrollingText" parentArray = "List" inherits = "XrystalUI_Font_08" text = "Scrolling Text" virtual = "true">
  2.         <Anchors>
  3.             <Anchor point = "TOPLEFT" x = "0" y = "-2" />
  4.             <Anchor point = "TOPRIGHT" x = "-25" y = "-2" />
  5.         </Anchors>
  6.         <Color r = "1.00" g = "1.00" b = "1.00" />
  7.     </FontString>

This seems to work as expected.

I can't understand why the Splash Screen worked without the change and the Profile List worked after the change ( without affecting the Splash Screen ). I double checked the code yet again in case I missed something connected to the anchoring and sizing system but nada .. they were identical. The only difference is that the Profile List is being housed into another frame created by Blizzard which may not be definied in the same way the UIParent is that my Splash Screen sits on. I will have to remember to bear that in mind when something similar crops up.

The question will always remain with why one worked and the other didn't... the mystery still exists. But at least it works now, so thanks.

Could be that XrystalUI_Splash has a size and an anchor point, while XrystalUI_Config_ProfileManager does not. This could lead to the 0 width problem you observed.

Lua Code:
  1. <Frame name="XrystalUI_Splash" hidden = "false">
  2.         <Size x = "500" y = "300" />
  3.         <Anchors>
  4.             <Anchor point = "CENTER" />
  5.         </Anchors>
  Reply With Quote