Skip to content

fix #6923 dnnHelperTip causes horizontal scrollbar when moving mouse…#4

Open
thienvc wants to merge 4 commits intodevelopfrom
fix-dnnHelperTip
Open

fix #6923 dnnHelperTip causes horizontal scrollbar when moving mouse…#4
thienvc wants to merge 4 commits intodevelopfrom
fix-dnnHelperTip

Conversation

@thienvc
Copy link
Owner

@thienvc thienvc commented Jan 20, 2026

… to the right edge (dnn.jquery.js)

fix dnnsoftware#6923
dnnHelperTip causes horizontal scrollbar when moving mouse to the right edge (dnn.jquery.js) ## Description
This PR fixes issue dnnsoftware#6923 where the dnnHelperTip causes a horizontal scrollbar when the mouse moves to the right edge of the screen. I added logic to calculate the viewport width and constrain the tooltip position.

Changes

  • Modified dnn.jquery.js to clamp the tooltip X coordinate within the window width.

RFC / Future Consideration

While this PR resolves the immediate scrolling issue, I would like to propose (RFC) fully deprecating this JavaScript-based "mouse-follow" behavior in favor of a pure CSS implementation. Moving to CSS would simplify the codebase and provide a lighter, more stable UI/UX for the Admin interface. PS: If there is consensus on this approach, I can proceed with a PR to refactor this feature. The helper tip will be static and centered relative to the Module title, completely removing the mouse-tracking behavior.

Summary

thienvc and others added 4 commits January 20, 2026 11:34
…ving mouse to the right edge (dnn.jquery.js)

fix  dnnsoftware#6923 
dnnHelperTip causes horizontal scrollbar when moving mouse to the right edge (dnn.jquery.js)
## Description
This PR fixes issue dnnsoftware#6923 where the `dnnHelperTip` causes a horizontal scrollbar when the mouse moves to the right edge of the screen. I added logic to calculate the viewport width and constrain the tooltip position.

## Changes
- Modified `dnn.jquery.js` to clamp the tooltip X coordinate within the window width.

## RFC / Future Consideration
While this PR resolves the immediate scrolling issue, I would like to propose (RFC) fully deprecating this JavaScript-based "mouse-follow" behavior in favor of a pure CSS implementation. Moving to CSS would simplify the codebase and provide a lighter, more stable UI/UX for the Admin interface.
PS: If there is consensus on this approach, I can proceed with a PR to refactor this feature. The helper tip will be static and centered relative to the Module title, completely removing the mouse-tracking behavior.
dnnsoftware#6916 was merged with whitespace issues, this PR fixes that
Fixed whitespace issues in default.aspx.cs
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.

[Bug]: dnnHelperTip causes horizontal scrollbar when moving mouse to the right edge (dnn.jquery.js)

2 participants