浏览代码

Merge branch 'material' into 'master'

tab debug error fix

See merge request upm-packages/ui-widgets/com.unity.uiwidgets!138
/main
Shenhua Gu 6 年前
当前提交
e18510b2
共有 2 个文件被更改,包括 11 次插入2 次删除
  1. 11
      Runtime/material/tabs.cs
  2. 2
      Runtime/widgets/scroll_position.cs

11
Runtime/material/tabs.cs


}
public readonly _TabBarState tabBar;
public override bool applyContentDimensions(float minScrollExtent, float maxScrollExtent) {
bool result = true;
if (!this.havePixels) {
this.correctPixels(this.tabBar._initialScrollOffset(this.viewportDimension, minScrollExtent, maxScrollExtent));
result = false;
}
return base.applyContentDimensions(minScrollExtent, maxScrollExtent) && result;
}
}

position.maxScrollExtent);
}
float _initialScrollOffset(float viewportWidth, float minExtent, float maxExtent) {
internal float _initialScrollOffset(float viewportWidth, float minExtent, float maxExtent) {
return this._tabScrollOffset(this._currentIndex, viewportWidth, minExtent, maxExtent);
}

2
Runtime/widgets/scroll_position.cs


}
}
public bool hasPixles {
public bool havePixels {
get { return this._pixels != null; }
}

正在加载...
取消
保存