浏览代码

bug fix

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
29644f8b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      com.unity.uiwidgets/Runtime/rendering/sliver_padding.cs
  2. 2
      com.unity.uiwidgets/Runtime/widgets/sliver_fill.cs

2
com.unity.uiwidgets/Runtime/rendering/sliver_padding.cs


paintExtent: paintExtent,
layoutExtent: Mathf.Min(mainAxisPaddingPaintExtent + childLayoutGeometry.layoutExtent, paintExtent),
cacheExtent: Mathf.Min(mainAxisPaddingCacheExtent + childLayoutGeometry.cacheExtent, constraints.remainingCacheExtent),
maxPaintExtent: mainAxisPadding ?? 0.0f + childLayoutGeometry.maxPaintExtent,
maxPaintExtent: (mainAxisPadding ?? 0.0f) + childLayoutGeometry.maxPaintExtent,
hitTestExtent: Mathf.Max(
mainAxisPaddingPaintExtent + childLayoutGeometry.paintExtent,
beforePaddingPaintExtent + childLayoutGeometry.hitTestExtent

2
com.unity.uiwidgets/Runtime/widgets/sliver_fill.cs


float _viewportFraction;
public EdgeInsets resolvedPadding {
protected override EdgeInsets resolvedPadding {
get {
return _resolvedPadding;
}

正在加载...
取消
保存