Skip to content

Fix: highlighting LiveViews by their children bounding boxes#976

Merged
GuzekAlan merged 3 commits into
mainfrom
973-highlighting-liveviews-not-working
Apr 21, 2026
Merged

Fix: highlighting LiveViews by their children bounding boxes#976
GuzekAlan merged 3 commits into
mainfrom
973-highlighting-liveviews-not-working

Conversation

@GuzekAlan
Copy link
Copy Markdown
Contributor

No description provided.

@GuzekAlan GuzekAlan requested review from hhubert6 and srzeszut April 20, 2026 08:59
@GuzekAlan GuzekAlan linked an issue Apr 20, 2026 that may be closed by this pull request
Comment thread assets/client/services/highlight.js
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the client-side element highlighting logic so LiveViews with zero-sized root containers are highlighted using the bounding box of their visible descendants.

Changes:

  • Added recursive getHighlightRect to compute a usable highlight rectangle (falling back to children when the element’s own rect is 0x0).
  • Updated highlight/pulse rendering to use the computed rect rather than offsetWidth/offsetHeight.
  • Regenerated bundled static artifacts (priv/static/client.js and source map) to reflect the new highlight behavior.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
assets/client/services/highlight.js Implements descendant-based bounding box calculation and updates highlight/pulse sizing/positioning.
priv/static/client.js Rebuilt/minified client bundle including the updated highlight logic.
priv/static/client.js.map Updated source map to match the rebuilt client bundle.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread assets/client/services/highlight.js
Comment thread assets/client/services/highlight.js Outdated
@GuzekAlan GuzekAlan merged commit 317a7dc into main Apr 21, 2026
4 checks passed
@GuzekAlan GuzekAlan deleted the 973-highlighting-liveviews-not-working branch April 21, 2026 08:45
hhubert6 pushed a commit that referenced this pull request Apr 27, 2026
* highlight children if element has no bounding boxes
* remove highlight on resize where no element found
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.

Highlighting LiveViews not working

4 participants