[CLOSED] How can I make the window to start with a specific position top and left when it is maximized?

  1. #1

    [CLOSED] How can I make the window to start with a specific position top and left when it is maximized?

    Hi,

    I have a window with the properties Maximizable="true" and Layout="fit".

    How can I make the window to star with a specific position top and left when it is maximized.


    
    
    
    <ext:Window ID="windowPortalAnimation" runat="server" Collapsible="true" 
    
    
    Height="415" Icon="Application" Maximizable="true" Layout="fit"
    
    
    Title="Title" Width="681" MaxHeight="600px" MaxWidth="960px" 
    
    
    >
    
    
    <Items>
    
    
    <ext:FlashComponent 
    
    
    ID="portalAnimationBrowse" 
    
    
    runat="server" 
    
    
    Height="415px" 
    
    
    Width="681px" 
    
    
    meta:resourcekey="portalAnimationResource1">
    
    
    <FlashParams> 
    
    
    <ext:Parameter Name="wmode" Value="transparent" /> 
    
    
    <ext:Parameter name="quality" value="high" /> 
    
    
    <ext:Parameter name="swfversion" value="6.0.65.0" /> 
    
    
    <ext:Parameter name="expressinstall" value="Scripts/expressInstall.swf" /> 
    
    
    <ext:Parameter Name="allowfullscreen" Value="true" Mode="Raw" /> 
    
    
    </FlashParams> 
    
    
    </ext:FlashComponent> 
    
    
    </Items>
    
    
    </ext:Window>




  2. #2

    RE: [CLOSED] How can I make the window to start with a specific position top and left when it is maximized?

    Hi,

    I am not sure what you mean. Maximized window cannot has the top and left position because the window always fit on whole browser area
  3. #3

    RE: [CLOSED] How can I make the window to start with a specific position top and left when it is maximized?

    Hi,

    What I need it is to let the user to resize the window that I am using to show the animation, using an specific size and position instead of using full screen.

    As you can see in the code example I have the window in a TabPanel.

    Can I make the window to fit the position and size of the tab panel?


  4. #4

    RE: [CLOSED] How can I make the window to start with a specific position top and left when it is maximized?

    Hi,

    1.What I need it is to let the user to resize the window that I am using to show the animation, using an specific size and position instead of using full screen.
    You can manually to change position and size of the window
    - add tool to the window (Tools collection)
    <ext:Tool Type="Maximize" Handler="maximize(#{windowPortalAnimation}, 100, 100);" />
    - define js method
    function maximize(w, x, y){w.setSize(w.boxMaxWidth, w.boxMaxHeight);w.el.setLeftTop(x, y);}

    2. As you can see in the code example I have the window in a TabPanel.
    I don't see the TabPanel. By the way, define a window inside tab have nos sense because the window always renders to the form (by default). Do you want to constrain the window moving (only inside the tab)?
  5. #5

    RE: [CLOSED] How can I make the window to start with a specific position top and left when it is maximized?

    Hi,

    I am using a window because it is the only example that I found to let the user resaize it for to see the animation bigger.

    Could you tell me please which controlto use to accomplish what I want using tabs.

    I need to show different animations in different tabs.

  6. #6

    RE: [CLOSED] How can I make the window to start with a specific position top and left when it is maximized?

    Hi,

    Why you do not want to use Resizable control?
    http://forums.ext.net/showthread.php...0372-16-1.aspx

Similar Threads

  1. [CLOSED] Maximized window doesn't remain maximized
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Feb 07, 2012, 3:32 PM
  2. Replies: 5
    Last Post: Nov 14, 2011, 9:28 AM
  3. Replies: 11
    Last Post: Apr 08, 2010, 1:36 PM
  4. TabPanel tabs start position
    By aghanem in forum 1.x Help
    Replies: 5
    Last Post: Apr 26, 2009, 5:03 PM
  5. Start Menu Position
    By mono in forum 1.x Help
    Replies: 1
    Last Post: Mar 07, 2009, 11:54 AM

Posting Permissions