[CLOSED] [1.0] Best way to change window width (client)

  1. #1

    [CLOSED] [1.0] Best way to change window width (client)

    Hi,

    I was wondering how I can set the window width and height by using window.screen.availWidth and window.screen.availHeight
    I don't want to open the window full width/height but -50px (so you can see some of the desktop)

    I currently use (desktop) the following HTML code for launching the window on page load:

    
    
    
    
    <ext:DesktopWindow 
     ID="winDashboard" 
            runat="server" 
            Title="Dashboard" 
            Icon="ChartPie"              
            Width="720"
            Height="550"
            PageX="10" 
            PageY="10">
            <AutoLoad Url="Dashboard.aspx" Mode="IFrame" />
    </ext:DesktopWindow></p>
    But want to open it more to depend on the window size.

    Martin
  2. #2

    RE: [CLOSED] [1.0] Best way to change window width (client)

    Hi Martin,

    You can use the <BeforeRender> Listener to change height/width of the Window before it is shown.

    Example

    <ext:Window
        ID="Window2" 
        runat="server" 
        Title="Example" 
        Width="720"
        Height="550"
        PageX="10" 
        PageY="10">
        <Listeners>
            <BeforeRender Handler="el.setSize(window.innerWidth - 50, window.innerHeight - 50);" />
        </Listeners>
    </ext:Window>
    Hope this helps.

    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] how to change the grid column width in client side?
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 07, 2012, 7:36 PM
  2. [CLOSED] Change Width of MessageBox on Client
    By logicspeak in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 08, 2012, 6:13 PM
  3. [CLOSED] Auto change popop window height and width
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 09, 2011, 8:29 AM
  4. [CLOSED] Change width Confirmation
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jun 07, 2011, 2:19 PM
  5. [CLOSED] [1.0] CheckColumn width change broken
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 15, 2010, 12:58 PM

Posting Permissions