Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* work for surveyjs/private-tasks#347

* work for surveyjs/private-tasks#347

* Revert "work for surveyjs/private-tasks#347"

This reverts commit b211e9c.

* work for surveyjs/private-tasks#347

---------

Co-authored-by: OlgaLarina <[email protected]>
  • Loading branch information
OlgaLarina and OlgaLarina authored Jan 18, 2024
1 parent d94f1fb commit e71e30d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,10 @@ export class ThemeBuilder extends Base {
protected createThemeEditorSurvey(): SurveyModel {
const json = this.getThemeEditorSurveyJSON();
setSurveyJSONForPropertyGrid(json, true, false);
const themeEditorSurvey = this.surveyProvider.createSurvey(json, "theme_editor", this);
const themeEditorSurvey = this.surveyProvider.createSurvey({}, "theme_editor", this);
themeEditorSurvey.lazyRendering = true;
themeEditorSurvey.lazyRenderingFirstBatchSize = 1;
themeEditorSurvey.setJsonObject(json);
themeEditorSurvey.getCss().list = {};
const themeBuilderCss = { ...propertyGridCss };
themeBuilderCss.root += " spg-theme-builder-root";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.spg-theme-builder-root {
.sv-skeleton-element {
min-height: 50px;
}

.spg-paneldynamic__separator {
border: none;
margin: 0;
Expand Down
3 changes: 2 additions & 1 deletion visualRegressionTests/tests/designer/theme-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ test("Check boxshadow settings", async (t) => {
await t.resizeWindow(2000, 2000)
.click(getTabbedMenuItemByText("Themes"))
.click(getPropertyGridCategory("Appearance"))
.click(advancedModeSwitcher);
.click(advancedModeSwitcher)
.scrollIntoView(root);
await takeElementScreenshot("boxshadow-one-panel.png", root, t, comparer);
await t.click(".spg-paneldynamic__add-btn");
await t.hover(root, { offsetX: 0, offsetY: 0 });
Expand Down

0 comments on commit e71e30d

Please sign in to comment.