map: the windowed art buried the continent and zone dropdowns

grom: "the map is not properly sized in the window and I can't see/click the
dropdowns at the top". What was on screen was two small circles and a search box
above the parchment -- the bottom edge of pfUI's title bar, everything under it
covered by the map sheet.

Measured on his own saved variables: WORLDMAP_WINDOWED is 1, so the realm runs
WorldMapFrame_Minimize at VARIABLES_LOADED, which pins WorldMapPositioningGuide
to the window's own corners (WorldMapFrame.lua:201-203). Both dropdowns anchor
to that guide at TOP -80,-35, so windowed they sit 34 to 66 below the window's
top -- which is why the same function hides them three lines later. pfUI puts
them back (SkinDropDown) into a window it sizes to WorldMapButton plus 15x55 of
chrome, eleven short of the 66 their anchor wants. 31 of their 32 points ended
up under WorldMapDetailFrame, level 3 against their 1.

The reference buries them too; what is ours is that our canvas fills the window
an addon sized rather than leaving the art a 701x468 patch in the corner of it,
which makes the burial total. So WindowedInset gives them the band when they are
visible: the art starts four points below the lower dropdown. Hidden -- stock,
and every chain without a map addon -- the inset stays 1.12's own 33 and the
windowed map is pixel-identical.

The cost is 35 points of art height in that window, so the fit zoom lands at 0.95
and the sheet is pillarboxed about 17 points a side.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SgstFWtn1RxEJ5kVrpgYwn
This commit is contained in:
2026-11-09 08:11:36 -07:00
co-authored by Claude Opus 5
parent d1d44a7801
commit f080e95b8d
3 changed files with 158 additions and 1 deletions
+44
View File
@@ -5265,3 +5265,47 @@ ends it with "Click to read its story". Sweeping 247 points across Dun Morogh it
of the box without giving up the panel — and the checkbox that writes it reads *Show Map Lore
Panel*, which is why nobody finds it. `Addon_Ports/softspoken_port/` splits it onto its own
`mapHover` setting, default off, with its own checkbox.
### 2026-11-09: and the dropdowns above it were under the art
Same map, same chain, the other half of grom's report: *"the map is not properly sized in the
window and I can't see/click the dropdowns at the top"*. What he could see was two small circles
and a search box poking out above the parchment — the bottom edge of pfUI's title bar, with
everything below it buried.
The chain of facts, all measured on his saved variables rather than inferred:
| | |
| --- | --- |
| `benilla-config/saved-variables.lua:51` | `WORLDMAP_WINDOWED = 1` |
| `WorldMapFrame.lua:40` | at `VARIABLES_LOADED`, that calls `WorldMapFrame_Minimize()` |
| `WorldMapFrame.lua:201-203` | which pins `WorldMapPositioningGuide` to the **window's own two corners** (`+0,+1` / `+1,+0`), not its declared 1024x768 |
| `WorldMapFrame.xml:261` | and both dropdowns are anchored `TOP, -80, -35` to that guide, so they land 34 to 66 below the window's top |
| `WorldMapFrame.lua:225-228` | which is why the same function then sets their alpha to 0 and takes the mouse off them |
| `pfUI/modules/map.lua:111` | pfUI resizes the window to `WorldMapButton` + 15x55 of chrome — 1017x723 |
| `pfUI/modules/map.lua:154` | and `SkinDropDown` runs over both, which puts them back at alpha 1 |
So they return at full alpha into a band whose geometry the realm never meant to be seen, and
`WorldMapDetailFrame` draws over them: level 3 against their level 1. Measured: **31 of their 32
points under the art**, a click on the sliver reaching the map. pfUI's own 55 points of chrome is
11 short of the 66 its dropdowns' anchor asks for, so even without us the band does not fit.
What is ours is that our canvas fills the window an addon sized instead of leaving the art a
701x468 patch in the corner of it, which is what makes the burial total rather than partial. The
fix is in `MapCanvas.lua`'s `WindowedInset`: when the dropdowns are shown with a non-zero alpha,
the windowed top inset becomes their bottom plus four, so the art starts underneath them. When
they are hidden — stock, and every chain with no map addon — it stays 1.12's own 33 and the
windowed map is pixel-identical to what it was. Pinned by
`a_visible_map_dropdown_gets_the_windowed_art_out_from_under_it`.
The cost is height: the art is 633 points tall in that window instead of 668, so the fit-to-window
zoom lands at 0.95 and the sheet is pillarboxed by about 17 points a side. That is the trade for a
usable continent and zone picker, and it is what pfUI's layout was asking for all along.
Worth writing down separately: **a map capture is a different map without
`benilla-config/saved-variables.lua` in the capture home.** `WORLDMAP_WINDOWED` lives there, and
without it every capture opens the maximized map. Three earlier runs could not reproduce this
report for that reason, and reproducing it by calling `WorldMapFrame_Minimize()` by hand produced
a *different* state again — minimize after pfUI's pass, rather than before it, which is what
leaves the dropdowns at alpha 0 instead of 1. `local_state.rs`'s own comment says so; the farm
simply did not have the file.