Rect#getVisible() does not work well with absolutely positioned elements #14107
Labels
package:utils
squad:features
Issue to be handled by the Features team.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
Consider the following structure:
then call
new Rect( child ).getVisible()
✔️ Expected result
Since the child has
position: absolute
and the parent has noposition: relative
, the child can move freely unobstructed by the parent. It will not get cropped.But
getVisible()
will consider the parent nevertheless.❌ Actual result
The parent is ignored by
getVisible()
logic.❓ Possible solution
The logic of
getVisible()
should understand whether the child will be cropped or not. See this fiddle to learn more https://jsfiddle.net/4wnxhjf1/47/.If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: