[CLOSED] Avoid draggable window to be dragged out of screen

  1. #1

    [CLOSED] Avoid draggable window to be dragged out of screen

    Hi,

    I've same behaviour like in here: https://examples2.ext.net/#/Window/B...ernal_Website/

    Is there anyway to avoid window be dragged out from screen?

    I mean only with Ext.Net codebehind functionality ?

    If now mb Ext Js provide some solution about that? I've found this in sencha documentation
    http://docs.sencha.com/ext-js/3-4/#!...od-constrainTo

    but I wonder if there any similar feature in Ext.Net :)

    Thanks,
    ViDom
    Last edited by Daniil; Nov 27, 2012 at 4:42 PM. Reason: [CLOSED]
  2. #2
    Hi @ViDom,

    I think you need to use a Constrain property.
    http://docs.sencha.com/ext-js/3-4/#!...-cfg-constrain

    Example
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <ext:Window runat="server" Constrain="true" />
    </body>
    </html>
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @ViDom,

    I think you need to use a Constrain property.
    http://docs.sencha.com/ext-js/3-4/#!...-cfg-constrain

    Example
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <ext:Window runat="server" Constrain="true" />
    </body>
    </html>
    Hi @Daniil :)

    Yes that's exactly what I needed :)

    You rescue my day again ;)
    great job guys :)
    Thanks :)

Similar Threads

  1. [CLOSED] Ext Window not always centering in screen
    By wisdomchuck in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 29, 2012, 6:50 PM
  2. Loading screen during window resize
    By adipoaca in forum 1.x Help
    Replies: 1
    Last Post: Nov 24, 2011, 12:39 PM
  3. Replies: 5
    Last Post: Nov 14, 2011, 9:28 AM
  4. [CLOSED] Window Full Screen
    By peter.campbell in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 24, 2011, 2:11 PM
  5. Replies: 0
    Last Post: Mar 25, 2010, 7:59 PM

Tags for this Thread

Posting Permissions