PDA

View Full Version : [CLOSED] [#212] Problem on FormPanel's default anchor after updating from SVN



RCN
Apr 16, 2013, 6:21 PM
After updating from SVN, i found an issue on FormPanel's default anchor when FormPanel's AutoScroll property is set to true.

6035
As it's possible to see in the image presented above, the anchor is not honored and it looks like that the width of the Scroll was "reserved".



<!DOCTYPE html>
<html>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:FormPanel Title="Ext.Net" Margin="10" BodyPadding="5" Width="300" Height="200" AutoScroll="true"
runat="server">
<FieldDefaults LabelAlign="Top" />
<Defaults>
<ext:Parameter Name="anchor" Value="100%" Mode="Value" />
</Defaults>
<Items>
<ext:TextField FieldLabel="Field 1" runat="server" />
<ext:TextField FieldLabel="Field 2" runat="server" />
<ext:TextField FieldLabel="Field 3" runat="server" />
</Items>
</ext:FormPanel>
</body>
</html>


To overcome this issue, it's necessary to remove FormPanel's default anchor, as shown below:


<!DOCTYPE html>
<html>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:FormPanel Title="Ext.Net" Margin="10" BodyPadding="5" Width="300" Height="200" AutoScroll="true"
runat="server">
<FieldDefaults LabelAlign="Top" />
<Items>
<ext:TextField FieldLabel="Field 1" runat="server" />
<ext:TextField FieldLabel="Field 2" runat="server" />
<ext:TextField FieldLabel="Field 3" runat="server" />
</Items>
</ext:FormPanel>
</body>
</html>


With approach it's possible to get the following result:
6036


I would like to know whether it's a bug.

Thanks in advance

Baidaly
Apr 16, 2013, 9:25 PM
Hello!

I wouldn't consider this as a bug. But we will investigate it.

Thank you!

RCN
Apr 16, 2013, 9:31 PM
Thank you Baidaly. Please keep posted.

Daniil
Apr 17, 2013, 8:25 AM
Hello,

I think it should not reserve space by default. Also setting up ReserveScrollbar="false" explicitly doesn't help. I reported to Sencha.
http://www.sencha.com/forum/showthread.php?261493

Daniil
Apr 17, 2013, 8:33 AM
My report duplicates another one.
http://www.sencha.com/forum/showthread.php?260123

It is [OPEN].

Created an Issue to track this defect.
https://github.com/extnet/Ext.NET/issues/212

Thank you for the report.

RCN
Apr 17, 2013, 11:57 AM
You're welcome.

Baidaly
May 30, 2013, 6:41 AM
The issue appears to be fixed in the SVN trunk. Please update.

RCN
May 31, 2013, 12:52 PM
Thank both of you