You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
builder.AddContent(5, "This is the first dialog with scrollable content. You should be able to scroll this content.");
34
+
builder.CloseElement();
35
+
36
+
// Add lots of content to make it scrollable
37
+
for (inti=1; i<=50; i++)
38
+
{
39
+
builder.OpenElement(6+i*3, "p");
40
+
builder.AddContent(7+i*3, $"Line {i}: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
41
+
builder.CloseElement();
42
+
}
43
+
44
+
// Add button to open second dialog
45
+
builder.OpenElement(200, "div");
46
+
builder.AddAttribute(201, "class", "mt-4");
47
+
builder.OpenComponent<Button>(202);
48
+
builder.AddAttribute(203, "Text", "Open Second Dialog");
builder.AddContent(6, "THIS IS THE SECOND DIALOG - IT SHOULD BE SCROLLABLE TOO!");
77
+
builder.CloseElement();
78
+
79
+
// Add lots of content to make it scrollable
80
+
for (inti=1; i<=30; i++)
81
+
{
82
+
builder.OpenElement(7+i*3, "p");
83
+
builder.AddContent(8+i*3, $"Second Dialog Line {i}: This content should be scrollable in the second dialog. The bug was that this second dialog couldn't scroll.");
84
+
builder.CloseElement();
85
+
}
86
+
87
+
// Add button to open third dialog
88
+
builder.OpenElement(200, "div");
89
+
builder.AddAttribute(201, "class", "mt-4");
90
+
builder.OpenComponent<Button>(202);
91
+
builder.AddAttribute(203, "Text", "Open Third Dialog");
0 commit comments