Skip to content

Commit

Permalink
Survey Creator demos: A shade on the design surface can be scrolled w…
Browse files Browse the repository at this point in the history
…hen Property Grid is open (#5403)

Fixed surveyjs/service#2073
  • Loading branch information
novikov82 committed Apr 11, 2024
1 parent 67b5bc7 commit 55ae632
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/survey-creator-core/src/utils/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
height: calcSize(60);
min-height: calcSize(60);
flex-grow: 1;
position: relative;
}
.svc-flex-row__element--growing {
flex: 1;
Expand Down
6 changes: 6 additions & 0 deletions testCafe/designer/surface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,10 @@ test("Check page navigator is visually hidden", async (t) => {
};
await setJSON(json);
await t.expect(Selector(".svc-tab-designer__page-navigator").visible).notOk();
});
test("Check sidebar shadow height", async (t) => {
await t.resizeWindow(1000, 300);
await setJSON({});
await t.click('button[title="Survey settings"]');
await t.expect(Selector(".svc-side-bar__shadow").offsetHeight).lte(480);
});

0 comments on commit 55ae632

Please sign in to comment.