gewentao 6 年前
当前提交
51fab5e2
共有 2 个文件被更改,包括 2 次插入5 次删除
  1. 6
      Assets/UIWidgets/rendering/stack.cs
  2. 1
      Assets/UIWidgets/widgets/basic.cs

6
Assets/UIWidgets/rendering/stack.cs


size = new Size(width, height);
D.assert(size.width == constraints.constrainWidth(width));
D.assert(size.height == constraints.constrainHeight(height));
}
else {
} else {
size = constraints.biggest;
}

if (!childParentData.isPositioned) {
childParentData.offset = _resolvedAlignment.alongOffset(size - child.size);
}
else {
} else {
BoxConstraints childConstraints = new BoxConstraints();
if (childParentData.left != null && childParentData.right != null)

1
Assets/UIWidgets/widgets/basic.cs


using UIWidgets.rendering;
using UIWidgets.ui;
using UnityEngine;
using UnityEngine.Experimental.UIElements.StyleEnums;
using Color = UIWidgets.ui.Color;
using Overflow = UIWidgets.rendering.Overflow;
using Rect = UIWidgets.ui.Rect;

正在加载...
取消
保存