You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
boolget clipX {
RenderBoxModel renderBoxModel =thisasRenderBoxModel;
// Recycler layout not need repaintBoundary and scroll/pointer listeners,// ignoring overflowX or overflowY sets, which handle it self.if (renderBoxModel isRenderSliverListLayout) {
returnfalse;
}
List<Radius>? borderRadius = renderBoxModel.renderStyle.borderRadius;
// The content of replaced elements is always trimmed to the content edge curve.// https://www.w3.org/TR/css-backgrounds-3/#corner-clippingif( borderRadius !=null&&thisisRenderReplaced&& renderStyle.intrinsicRatio !=null
) {
returntrue;
}
// Overflow value other than 'visible' always need to clip content.// https://www.w3.org/TR/css-overflow-3/#overflow-propertiesCSSOverflowType effectiveOverflowX = renderStyle.effectiveOverflowX;
if (effectiveOverflowX !=CSSOverflowType.visible) {
Size scrollableSize = renderBoxModel.scrollableSize;
Size scrollableViewportSize = renderBoxModel.scrollableViewportSize;
// Border-radius always to clip inner content when overflow is not visible.if (scrollableSize.width > scrollableViewportSize.width
|| borderRadius !=null
) {
returntrue;
}
}
returnfalse;
}
if (scrollableSize.width > scrollableViewportSize.width
|| borderRadius != null
)
判断条件未考虑到节点负向偏移的情况
使用的 Kraken 版本 | What version of kraken are you using
master
重现步骤 | Steps To Reproduce
重现代码 | Code example:
预期结果 | Expected results:

实际结果 | Actual results:

The text was updated successfully, but these errors were encountered: