PDA

View Full Version : [CLOSED] Stretching Portlets to fix the whole screen (100% screen height and width)



adrianot
Sep 25, 2013, 9:51 AM
Hi,

Today I am trying to replicate a behavior that worked fine on the previous Ext.Net library. I mean stretching Portal modules so that they fit the whole space available on the screen.


<ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
<Items>
<ext:Portal ID="Portal1" runat="server" Layout="HBoxLayout">
<Items>
<ext:PortalColumn ID="PortalColumn1" runat="server" Layout="VBoxLayout" Flex="1">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Portlet ID="Portlet1" runat="server" Title="Portlet A" Flex="1" />
<ext:Portlet ID="Portlet2" runat="server" Title="Portlet B" Flex="2" />
</Items>
</ext:PortalColumn>
<ext:PortalColumn ID="PortalColumn2" runat="server" Layout="VBoxLayout" Flex="2">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Portlet ID="Portlet3" runat="server" Title="Portlet C" Flex="1" />
<ext:Portlet ID="Portlet4" runat="server" Title="Portlet D" Flex="2" />
</Items>
</ext:PortalColumn>
</Items>
</ext:Portal>
</Items>
</ext:Viewport>

This behavior was possible a year ago (I found this old post discussing the same issuehttp://forums.ext.net/archive/index.php?t-20002.html), but for some reasons today this works only horizontally.

Is there a way to make it work?

Thank you!

Daniil
Sep 25, 2013, 11:13 AM
Hi @adrianot,

A Portal uses a ColumnLayout internally and it is not supposed to support any other layouts.



This behavior was possible a year ago (I found this old post discussing the same issuehttp://forums.ext.net/archive/index.php?t-20002.html), but for some reasons today this works only horizontally.


That example doesn't work for me. I tested with the latest Ext.NET v1 sources. Maybe, it worked before with some Ext.NET v1.x version, but, anyway, it was quite a hack.

As for Ext.NET v2. A similar problem was discussed here. Hope this helps.
http://forums.ext.net/showthread.php?20201