浏览代码

Merge pull request #363 from UnityTech/fix_outline_decoration

fix outline decoration bug
/main
GitHub 5 年前
当前提交
ebd951e7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Runtime/material/input_decorator.cs

4
Runtime/material/input_decorator.cs


? 0
: this.decoration.floatingLabelHeight;
float topHeight = this.decoration.border.isOutline
? Math.Max(labelHeight - boxToBaseline[this.label], 0)
? Math.Max(labelHeight - boxToBaseline.getOrDefault(this.label, 0), 0)
: boxToBaseline[this.counter] + subtextGap;
: boxToBaseline.getOrDefault(this.counter, 0) + subtextGap;
bool helperErrorExists = this.helperError?.size != null
&& this.helperError.size.height > 0;
float helperErrorHeight = !helperErrorExists

正在加载...
取消
保存