@onerjs/gui 8.30.7 → 8.30.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -687,9 +687,16 @@ export class Control {
687
687
  }
688
688
  }
689
689
  else {
690
- const percentage = parentMeasureValue ? pixelValue / parentMeasureValue : 0;
691
- if (unitValue.fromString(`${percentage}%`)) {
692
- this._markAsDirty();
690
+ if (this.parent) {
691
+ const percentage = parentMeasureValue ? pixelValue / parentMeasureValue : 0;
692
+ if (unitValue.fromString(`${percentage}%`)) {
693
+ this._markAsDirty();
694
+ }
695
+ }
696
+ else {
697
+ if (unitValue.fromString(`${pixelValue}px`)) {
698
+ this._markAsDirty();
699
+ }
693
700
  }
694
701
  }
695
702
  }