[CLOSED] Prevent dissapears window title bar

  1. #1

    [CLOSED] Prevent dissapears window title bar

    Hi,

    In Ext.NET 1.x, to prevent dissapearing window title bar, executes this code:

            Ext.onReady(function () {
                Ext.override(Ext.Window.DD, {
                    alignElWithMouse: function (el, iPageX, iPageY) {
                        var oCoord = this.getTargetCoord(iPageX, iPageY);
                        var fly = el.dom ? el : Ext.fly(el, '_dd');
                        if (!this.deltaSetXY) {
                            var aCoord = [oCoord.x, oCoord.y];
                            if (oCoord.x < Millenium.Windows.WindowHideX - el.getSize().width)
                                oCoord.x = Millenium.Windows.WindowHideX - el.getSize().width;
                            if (oCoord.y < Millenium.Windows.WindowHideY)
                                oCoord.y = Millenium.Windows.WindowHideY;
                            fly.setXY(aCoord);
                            var newLeft = fly.getLeft(true);
                            var newTop = fly.getTop(true);
                            this.deltaSetXY = [newLeft - oCoord.x, newTop - oCoord.y];
                        } else {
                            var x = oCoord.x + this.deltaSetXY[0];
                            if (x < Millenium.Windows.WindowHideX - el.getSize().width)
                                x = Millenium.Windows.WindowHideX - el.getSize().width
                            var y = oCoord.y + this.deltaSetXY[1];
                            if (y < Millenium.Windows.WindowHideY)
                                y = Millenium.Windows.WindowHideY;
                            fly.setLeftTop(x, y);
                        }
    
                        this.cachePosition(oCoord.x, oCoord.y);
                        this.autoScroll(oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth);
                        return oCoord;
                    }
                });   
            });
    Which is equivalent Ext.NET 2.x?

    Thanks,
    Last edited by Daniil; Jun 20, 2012 at 11:01 AM. Reason: [CLOSED]
  2. #2
    Please set ConstrainHeader="true" for a window
  3. #3
    Quote Originally Posted by Vladimir View Post
    Please set ConstrainHeader="true" for a window
    Hi Vladimir,

    With ConstrainHeader="true", when you move a window down, it breaks the viewport by moving the scroll down, to try to show the entire window.

    In Ext.NET 1.x, with the previous function and ConstrainHeader = "false", it was possible not to move the viewport and always keep visible the head of the window.

    Is there anyway to find the equivalence alignElWithMouse function in class DD?

    Thanks,
  4. #4
    Quote Originally Posted by softmachine2011 View Post
    With ConstrainHeader="true", when you move a window down, it breaks the viewport by moving the scroll down, to try to show the entire window.
    I am unable to reproduce. How can we reproduce the behavior you described?

    Quote Originally Posted by softmachine2011 View Post
    Is there anyway to find the equivalence alignElWithMouse function in class DD?
    v2 Window uses the Ext.util.ComponentDragger class to be draggable.
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.util.ComponentDragger

    I can't see there is the alignElWithMouse function.

Similar Threads

  1. [CLOSED] Updating the title of a destop window
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 13, 2012, 6:50 AM
  2. [CLOSED] Change Popup window Title
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 16, 2011, 11:15 AM
  3. Dynamic window title
    By phillipl in forum 1.x Help
    Replies: 3
    Last Post: Dec 16, 2009, 6:03 AM
  4. Updating window title in js
    By principal_X in forum 1.x Help
    Replies: 5
    Last Post: Jun 08, 2009, 8:25 PM
  5. Window Title Question
    By bruce in forum 1.x Help
    Replies: 3
    Last Post: Mar 09, 2009, 5:21 AM

Posting Permissions