Skip to content

Commit

Permalink
Merge pull request #9158 from surveyjs/issue/9157-Incorrect-scaling-f…
Browse files Browse the repository at this point in the history
…or-input

#9157 Incorrect scaling for input
  • Loading branch information
OlgaLarina authored Dec 11, 2024
2 parents 8e56732 + fed581f commit 048894b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
text-align: start;
box-shadow: $shadow-inner, 0 0 0 0px $primary;
transition: box-shadow $transition-duration;
display: block;
}

.sd-input:focus {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions visualRegressionTests/tests/defaultV2/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,4 +584,35 @@ frameworks.forEach(framework => {
});
});

test("Question scaling", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
await initSurvey(framework, {
"pages": [
{
"name": "page1",
"elements": [
{
"type": "text",
"name": "question1"
}
]
}
],
"showQuestionNumbers": "off",
});

await ClientFunction(() => {
(<any>window).survey.isCompact = true;
(<any>window).survey.applyTheme({
"cssVariables": {
"--sjs-font-size": "3.2px",
"--sjs-base-unit": "1.6px",
}
});
})();
const question = Selector(".sd-question");
await takeElementScreenshot("question-scaling.png", question, t, comparer);
});
});
});

0 comments on commit 048894b

Please sign in to comment.