Skip to content

Commit

Permalink
#6877 Mobile: Do not use min size for mobiles - use css min
Browse files Browse the repository at this point in the history
Fixes #6877
  • Loading branch information
novikov82 committed Sep 7, 2023
1 parent 5e32dbd commit b8c3d14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/survey-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ export class SurveyElement<E = any> extends SurveyElementCore implements ISurvey
style["flexGrow"] = 1;
style["flexShrink"] = 1;
style["flexBasis"] = this.renderWidth;
style["minWidth"] = this.renderMinWidth ? this.minWidth : "";
style["minWidth"] = this.renderMinWidth ? this.minWidth : "min(100%, " + this.minWidth + ")";
style["maxWidth"] = this.maxWidth;
}
return style;
Expand Down
2 changes: 1 addition & 1 deletion tests/surveyElementTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ QUnit.test("rootStyle on mobile", function (assert) {
"flexGrow": 1,
"flexShrink": 1,
"maxWidth": "100%",
"minWidth": ""
"minWidth": "min(100%, 300px)"
});
});
QUnit.test("question.errorLocation", function (assert) {
Expand Down

0 comments on commit b8c3d14

Please sign in to comment.