Skip to content

Commit 7db87fa

Browse files
cscoder69claude
andcommitted
Preview: shrink the scene when the plate would fill the box, so side icons stay in view
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c0fe41a commit 7db87fa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎CSCoder_QuestIndicator.lua‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,10 @@ end
15361536
local function ApplyPlateGeometry(p)
15371537
local geom, ratio = root and root.plateGeom, 1
15381538
if geom and geom.eff then ratio = geom.eff / p.box:GetEffectiveScale() end
1539+
-- A big plate (or a small UI scale) would fill the box and push side-anchored icons out of
1540+
-- view: then the whole scene shrinks, plate and icon together, so proportions still match.
1541+
local boxWidth = geom and geom.w and p.box:GetWidth()
1542+
if boxWidth and boxWidth > 0 then ratio = math.min(ratio, boxWidth * 0.45 / geom.w) end
15391543
if geom then
15401544
p.plate:SetSize(geom.w * ratio, geom.h * ratio)
15411545
if geom.barW then

0 commit comments

Comments
 (0)