Skip to content

Commit 38f7310

Browse files
committed
2 parents 026545c + 82f8c34 commit 38f7310

37 files changed

+976
-891
lines changed

functionalTests/designer/side-bar.ts

+51
Original file line numberDiff line numberDiff line change
@@ -284,4 +284,55 @@ test("No Focus on open Property grid Mobile", async (t) => {
284284
await t.expect(Selector(".svc-question__adorner button[title='Open settings']").visible).ok();
285285
await t.click(Selector(".svc-question__adorner button[title='Open settings']"));
286286
await t.expect(Selector(".spg-question[data-name=name] input").focused).notOk();
287+
});
288+
289+
test("Element Selector: Column: Scroll", async (t) => {
290+
await t.resizeWindow(1920, 500);
291+
292+
const json = {
293+
"pages": [
294+
{
295+
"name": "page1",
296+
"elements": [
297+
{
298+
"type": "matrixdropdown",
299+
"name": "question1",
300+
"columns": [
301+
{
302+
"name": "Column 1"
303+
},
304+
{
305+
"name": "Column 2"
306+
},
307+
{
308+
"name": "Column 3"
309+
}
310+
],
311+
"choices": [
312+
1,
313+
2,
314+
3,
315+
4,
316+
5
317+
],
318+
"rows": [
319+
"Row 1",
320+
"Row 2"
321+
]
322+
}
323+
]
324+
}
325+
],
326+
"headerView": "advanced"
327+
};
328+
await setJSON(json);
329+
330+
const getQuestionTopPosition = await ClientFunction(() => {
331+
return Math.round(document.querySelector(".svc-question__content")!.getBoundingClientRect().top);
332+
});
333+
334+
await t
335+
.expect(getQuestionTopPosition()).eql(374)
336+
.click(Selector("#svd-grid-object-selector")).click(Selector(".svc-list__item").withText("Column 2"))
337+
.expect(getQuestionTopPosition()).eql(72);
287338
});

packages/survey-creator-angular/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"forceConsistentCasingInFileNames": true,
1616
"strict": true,
1717
"noImplicitOverride": true,
18-
"noPropertyAccessFromIndexSignature": true,
18+
"noPropertyAccessFromIndexSignature": false,
1919
"noImplicitReturns": true,
2020
"noFallthroughCasesInSwitch": true,
2121
"sourceMap": true,

0 commit comments

Comments
 (0)