docs(Tooltip,Menu): clarify offset interaction with screen-edge clamping#18317
Merged
Merged
Conversation
Member
|
Thanks for contributing! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
The PR fulfills these requirements:
devbranchOther information:
Follow-up to #18212 (working-as-intended, not an offset bug).
The horizontal/vertical
offseton QTooltip/QMenu can appear to have no effect.It isn't an offset bug:
offsetis applied to the anchor element's bounding boxand the result is then clamped to the viewport, so anchoring to a full-width /
screen-edge element (or pointing
anchor/selftoward an edge with no room)masks the offset on that axis.
This adds a tip to the Positioning section of both the Tooltip and Menu docs
explaining the behaviour and how to avoid it.