Skip to content

Fix bottom-positioned popup max-height calculation#699

Open
leno23 wants to merge 1 commit into
MiniProfiler:mainfrom
leno23:fix/bottom-popup-max-height-696
Open

Fix bottom-positioned popup max-height calculation#699
leno23 wants to merge 1 commit into
MiniProfiler:mainfrom
leno23:fix/bottom-popup-max-height-696

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 25, 2026

Summary

  • Fixes corner-mode profiler popups that appear too short when RenderPosition is BottomLeft or BottomRight.
  • Popups in bottom positions grow upward from the button, but max-height was derived from the distance below the button in the viewport. When the button sits higher on the page, that left only a small max-height.
  • Bottom positions now use the space above the button; top positions use the space below the button.

Fixes #696

Test plan

  • Build MiniProfiler.Shared
  • Open a page with MiniProfiler in bottom-left and bottom-right corner mode
  • Click a profiler result and confirm the popup expands to use the available vertical space above the button
  • Verify top-left/top-right positioning still sizes popups correctly

Made with Cursor

Corner popups anchored to the bottom of the viewport grow upward, but
max-height was calculated from the distance below the button. That left
too little room when the profiler button was higher on the page.

Use the available space above the button for bottom-left/bottom-right
positions, and the space below for top positions.

Fixes MiniProfiler#696

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

When using with default scalar setup this max height inline style is causing it to have wrong height.

1 participant