TotalAP - Artifact Power Tracker

TotalAP - Artifact Power Tracker

104k Downloads

If the ActionButtonText is not visible, the ActionButton doesn't align properly

rdw-software opened this issue ยท 2 comments

commented

The alignment is kind of wonky in any event and needs some reworking.

Roadmap:

  • Repair alignment-center and test with various display parts being disabled
  • Fix delta calculation for progress bars and spec icons (in DefaultView)
  • Optional: Consider button text height, but only if it is actually shown (skipped for now)
commented

It's a flaw in the new GUI - instead of calculating the offsets for repositioning based on the actual (displayed) button size (and button text), the bars/icons are centered in relation to the (invisible) anchor frame. While that works okay-ish with the default settings, changing alignments and hiding, say, the button text, shows clearly that it's not behaving the way it used to.

Example: With align-bottom - >The bottom of the display should be the action button if the text is hidden, and the text (FontString) if it isn't. Right now, it is always the anchor frame, which calculates its height dynamically based on the number of displayed specs and the max (but not current) action button size.

See this user-submitted image

commented

This is now fixed in dbeaee5 - duplicate because the original commit referencing this was an accident; it actually fixed #35 and was amended later.

Skipped the buttonText alignment because of the weird behaviour upon initialisation (height seems to be 0 for the first few calls, for no apparent reason). May revisit in the future.