2 Commits

Author SHA1 Message Date
sindoring a93b5cc111 Keep the trainer's description above its buttons
Blizzard_TrainerUI.xml gives ClassTrainerDetailScrollFrame 135 from
288 below the frame's top, so it ends at 423 while the money and
buttons strip starts at 409: a description long enough to scroll ran
over the strip. Fixes.lua (both styles) sizes it 118 when the addon
loads, ending 3 above the strip; its scroll bar follows.

Verified in the live client, classic style, frame-relative tops:
detail 288..406, Train button 409, money 413, scroll bar bottom 390.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-19 16:36:18 +04:00
sindoring c7ff319ccc Fix the pet stat tooltip and the spellbook tab flash
PaperDollStatTooltip upper-cases UnitClass(unit)'s token, and a unit whose
class byte has no ChrClasses row answers two nils (UnitClass, 0x518350):
the server's demons do, so hovering the pet page's stats raised "bad
argument #1 to strupper". Such a unit now gets the stock default line, in
both styles.

LEARNED_SPELL_IN_TAB's glow flashed where 1.12's hidden skill line tabs
stood: it now sits on the book's own tabs, and choosing a tab stops it, as
SpellBookSkillLineTab_OnClick does.

Verified: harness probe (the pet tooltip shows the default strength line,
no error; the tab 2 glow's center matches our tab 2's; choosing tab 2
hides it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:36:06 +04:00