Skip to content

fix: adapt quest tracker height to content - #292

Open
postyizhan wants to merge 1 commit into
KAMKEEL:devfrom
postyizhan:fix/quest-tracker-adaptive-width
Open

fix: adapt quest tracker height to content#292
postyizhan wants to merge 1 commit into
KAMKEEL:devfrom
postyizhan:fix/quest-tracker-adaptive-width

Conversation

@postyizhan

Copy link
Copy Markdown

Summary

Fixes the quest tracker background panel leaving unnecessary empty shadow space below its content.
The tracker height is now calculated dynamically from the content currently being displayed, including:

  • Quest title lines
  • Quest category lines
  • Objective lines
  • Turn-in information
  • Text spacing and section separators
    This keeps the semi-transparent background aligned with the actual content instead of always using the fixed default height.

Before

The quest tracker used a fixed height, leaving a large empty shadow area below shorter quest content.

PixPin_2026-08-02_22-10-31

After

The background panel now adapts to the rendered content height.

47546bad7c6aa8fddced9e6dcae3a779

Implementation

Added an updateOverlayHeight() calculation to QuestTrackingComponent. The calculated height follows the same line-height and spacing rules used by the rendering flow.

Testing

  • Verified IAbilityEvent.DefendEvent is available from the dev API submodule revision
  • Ran ./gradlew compileJava
  • Build completed successfully
  • Verified the quest tracker background adapts to its displayed content
  • Verified the excess shadow area is no longer displayed

Build Result

BUILD SUCCESSFUL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant