Skip to content

Commit

Permalink
#8139 Dynamic panel (tab view). No room for search editor. (#8140)
Browse files Browse the repository at this point in the history
Fixes #8139
  • Loading branch information
novikov82 committed Apr 18, 2024
1 parent c328a21 commit ffa24dc
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common-styles/sv-list.scss
Expand Up @@ -209,6 +209,7 @@ li:focus .sv-list__item.sv-list__item--selected {
background: $background;
box-sizing: border-box;
width: 100%;
min-width: calcSize(30);
outline: none;
font-size: calcFontSize(1);
color: $foreground;
Expand Down
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/popup.ts
Expand Up @@ -405,4 +405,35 @@ frameworks.forEach(framework => {
await takeElementScreenshot("popup-into-modal-popup.png", Selector(".sv-popup.sv-single-select-list .sv-popup__container"), t, comparer);
});
});
test("Popup search width", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1000, 600);
await initSurvey(framework, {

"pages": [
{
"name": "page1",
"elements": [
{
"type": "paneldynamic",
"name": "question1",
"templateElements": [
{
"type": "text",
"name": "question2"
}
],
"panelCount": 20,
"renderMode": "tab"
}
]
}
]
});
await t
.click(".sv-dots__item");

await takeElementScreenshot("popup-search-width.png", Selector(".sv-popup .sv-popup__container"), t, comparer);
});
});
});

0 comments on commit ffa24dc

Please sign in to comment.