Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit dea05e1

Browse files
committed
重写部分宽高属性
1 parent a1ecffc commit dea05e1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

GameFramework/Runtime/UI/InfiniteListView.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,19 +340,19 @@ private IEnumerator InstantiateRenderCache(int renderMax, Action cacheInstantiat
340340

341341

342342
#region Interface
343-
public float minWidth => throw new System.NotImplementedException();
343+
public float minWidth => _maskSize.x;
344344

345-
public float preferredWidth => throw new System.NotImplementedException();
345+
public float preferredWidth => _renderLayout==Layout.Vertical? _maskSize.x:(_maxLength>0?_maxLength: _maskSize.x);
346346

347-
public float flexibleWidth => throw new System.NotImplementedException();
347+
public float flexibleWidth => _maskSize.x;
348348

349-
public float minHeight => throw new System.NotImplementedException();
349+
public float minHeight => _maskSize.y;
350350

351-
public float preferredHeight => throw new System.NotImplementedException();
351+
public float preferredHeight => _renderLayout == Layout.Vertical ? (_maxLength > 0 ? _maxLength : _maskSize.y):_maskSize.y ;
352352

353-
public float flexibleHeight => throw new System.NotImplementedException();
353+
public float flexibleHeight => _maskSize.y;
354354

355-
public int layoutPriority => throw new System.NotImplementedException();
355+
public int layoutPriority => 100;
356356

357357

358358
#endregion

0 commit comments

Comments
 (0)