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

  1. #1

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

    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!
    Last edited by Daniil; Oct 04, 2013 at 5:49 AM. Reason: [CLOSED]
  2. #2
    Hi @adrianot,

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

    Quote Originally Posted by adrianot View Post
    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

Similar Threads

  1. [CLOSED] Stretching the controls based on screen size
    By Tarun_Chand in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 25, 2013, 5:20 AM
  2. Column Layout exceeds screen width in chrome
    By fangmdu in forum 1.x Help
    Replies: 5
    Last Post: Jul 17, 2012, 8:17 PM
  3. Full Screen In Ext DeskTop
    By dotnet in forum 1.x Help
    Replies: 2
    Last Post: Oct 06, 2010, 2:00 PM
  4. Tab Screen Size
    By simonmicheal in forum 1.x Help
    Replies: 0
    Last Post: Oct 21, 2009, 2:00 PM
  5. Better to use a "page" for each "screen"?
    By dbassett74 in forum 1.x Help
    Replies: 0
    Last Post: Apr 22, 2009, 11:51 AM

Tags for this Thread

Posting Permissions