Skip to content

Conversation

@RoeKun
Copy link
Collaborator

@RoeKun RoeKun commented Oct 10, 2025

fix: scrollerView padding not work

@RoeKun RoeKun requested review from iPel and ruifanyuan October 10, 2025 05:59
@RoeKun RoeKun requested a review from hidawei as a code owner October 10, 2025 05:59
@@ -236,6 +236,16 @@ class FlexNode {
fun getPadding(spacingType: StyleSpace.Type): Float {
return flexStyle.padding[spacingType]
}
// 置空当前记录padding、margin、Border的spacing
fun resetPaddingToZero() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resetPaddingToZero建议以private扩展方法的形式在ScrollerView中定义,避免在排版引擎中引入非通用的逻辑

@RoeKun RoeKun linked an issue Oct 20, 2025 that may be closed by this pull request
@RoeKun RoeKun force-pushed the bugfix/scrollerView_padding_abnormal branch from 47ccc43 to 7b1c26a Compare October 24, 2025 13:09
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.

ScrollerView padding 布局异常

2 participants