May 15, 2013, 8:59 AM
[CLOSED] Adding controls to VBox layout causes scrolling to top
Hi,
i am experiencing a reset of the scroll position when both adding or removing controls to a scrollable panel having VBox layout. Is there a possibility to maintain the scroll position?
extnetuser
i am experiencing a reset of the scroll position when both adding or removing controls to a scrollable panel having VBox layout. Is there a possibility to maintain the scroll position?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
@Html.X().ResourceManager()
@(Html.X().FormPanel()
.ID("MyFormPanel")
.Title("Panel Title")
.AutoScroll(true)
.MaxHeight(200)
.Layout(LayoutType.VBox)
.Items(
it =>
{
it.Add(Html.X().TextArea().Height(400));
it.Add(Html.X().Button().ID("TestButton").Text("Remove Me").OnClientClick("App.TestButton.destroy();"));
it.Add(Html.X().Button().Text("Add").OnClientClick("Ext.getCmp('MyFormPanel').add({width:50,xtype:'textfield'});"));
})
)
</body>
</html>
Greetings and thank you,extnetuser
Last edited by Baidaly; May 16, 2013 at 1:14 AM.
Reason: [CLOSED]