From c6e48dbd9dbfc4d1e201357e0d9b6c148e5b4ddc Mon Sep 17 00:00:00 2001 From: tsv2013 Date: Mon, 16 Dec 2024 14:45:31 +0300 Subject: [PATCH] Fixed creator f-test --- packages/survey-core/src/survey.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/survey-core/src/survey.ts b/packages/survey-core/src/survey.ts index 4874ce66b1..edf70ce9e6 100644 --- a/packages/survey-core/src/survey.ts +++ b/packages/survey-core/src/survey.ts @@ -7337,10 +7337,11 @@ export class SurveyModel extends SurveyElementCore } public get renderedWidth(): string { const isStaticWidth = this.getPropertyValue("calculatedWidthMode") == "static"; - let width: any = this.getPropertyValue("width") || this.staticStartWidth; + let width: any = this.getPropertyValue("width"); if (this.isScaled && this.responsiveStartWidth > 1) { let initialWidth = this.responsiveStartWidth; try { + width = width || this.staticStartWidth; initialWidth = !isNaN(width) ? width : parseFloat(width.toString().replace("px", "")); } catch (e) { } return (isStaticWidth ? initialWidth : this.responsiveStartWidth) * this.widthScale / 100 + "px";