fix(core): adjust pushClip for active translateY to fix nested clip coordinate mismatch#1635
Conversation
…oordinate mismatch Closes Karanjot786#1630
|
Warning Review limit reached
More reviews will be available in 29 minutes and 24 seconds. Learn how PR review limits work. To continue reviewing without waiting, enable usage-based billing in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@Karanjot786 Please review this |
Description
pushClip()stores clip regions in absolute terminal coordinates, whilesetCell()applies_translateYto the row before checking the clip. When a parent widget applies a translate (e.g., ScrollView scrolling) and a child widget pushes a clip, the child's clip region doesn't account for the parent's translate offset. Content inside the inner clip is incorrectly clipped out.Fix
Adjusted
pushClip()to convert the input region from absolute to visual coordinates by adding the current_translateYtoregion.ybefore storing. This makes the clip check insetCell()consistent with the translated coordinate space.Tests
pushClip with active translateY adjusts clip region correctlynested clips with active translate work correctlysetCell is clipped by translate-adjusted region when parents have translateCloses #1630