Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 6f8085b

Browse files
authored
Merge pull request #388 from UnityTech/fix_bug
Fix bug in shifted box.
2 parents 0ef4aa6 + 0cb0081 commit 6f8085b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Runtime/rendering/shifted_box.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ public RenderFractionallySizedOverflowBox(
601601
public float? widthFactor {
602602
get { return this._widthFactor; }
603603
set {
604-
if (this._widthFactor != value) {
604+
if (this._widthFactor == value) {
605605
return;
606606
}
607607

@@ -615,7 +615,7 @@ public float? widthFactor {
615615
public float? heightFactor {
616616
get { return this._heightFactor; }
617617
set {
618-
if (this._heightFactor != value) {
618+
if (this._heightFactor == value) {
619619
return;
620620
}
621621

@@ -842,7 +842,7 @@ public RenderBaseline(
842842
public float baseline {
843843
get { return this._baseline; }
844844
set {
845-
if (this._baseline != value) {
845+
if (this._baseline == value) {
846846
return;
847847
}
848848

@@ -857,7 +857,7 @@ public float baseline {
857857
public TextBaseline baselineType {
858858
get { return this._baselineType; }
859859
set {
860-
if (this._baselineType != value) {
860+
if (this._baselineType == value) {
861861
return;
862862
}
863863

0 commit comments

Comments
 (0)