Jul 27, 2015, 7:51 AM
[OPEN] [#845] Control heights are not calculated correctly in PartialViews on Autoscroll containers with top-aligned labels
Context:
Asp.Net MVC4, Ext.Net.MVC 3.2.
The layout of our application consists of a vbox containing several rows dynamically created witch may contain one or more controls.
To align correctly those controls we represent every row as a container with an hbox layout.
Most of our custom controls extend Ext.form.FieldContainer.
How to reproduce:
- Controls label alignment is set to “Topâ€
- The custom control extends Ext.form.FieldContainer
- The control is inside a hbox layout (the row in our case)
- The content is retrieved as a partial view inside the main page
Now, it appears that setting the container with "Autoscroll" breaks the layout height calculation. The result is that the the last field get clipped on the bottom of the container:
Without AutoScroll:
Attachment 24096
With AutoScroll:
Attachment 24097
I'm sending you the updated sample project to reproduce:
https://onedrive.live.com/redir?resi...int=file%2czip
The is a similar (or maybe the same) issue on ExtJS reported last month:
https://www.sencha.com/forum/showthread.php?302189
Thank you.
Asp.Net MVC4, Ext.Net.MVC 3.2.
The layout of our application consists of a vbox containing several rows dynamically created witch may contain one or more controls.
To align correctly those controls we represent every row as a container with an hbox layout.
Most of our custom controls extend Ext.form.FieldContainer.
How to reproduce:
- Controls label alignment is set to “Topâ€
- The custom control extends Ext.form.FieldContainer
- The control is inside a hbox layout (the row in our case)
- The content is retrieved as a partial view inside the main page
Now, it appears that setting the container with "Autoscroll" breaks the layout height calculation. The result is that the the last field get clipped on the bottom of the container:
Without AutoScroll:
Attachment 24096
With AutoScroll:
Attachment 24097
I'm sending you the updated sample project to reproduce:
https://onedrive.live.com/redir?resi...int=file%2czip
The is a similar (or maybe the same) issue on ExtJS reported last month:
https://www.sencha.com/forum/showthread.php?302189
Thank you.
Last edited by Daniil; Jul 27, 2015 at 9:19 AM.
Reason: [OPEN] [#845]