Results 1 to 4 of 4

Thread: [6.5.3 Classic] Window "jumps" when dragged with constrainHeader=true

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default [6.5.3 Classic] Window "jumps" when dragged with constrainHeader=true

    Please tun this fiddle and use show button. The window is positioned correctly, but when I try to drag it, it will "jump" to new position.
    The jump is performed from this location showBy(this, 'br', [20, 20]); to the location where is would be shown by simple show() method.


    This is something new, as this worked just fine in ExtJS 6.0.2 (please change version and compare - the window will not jump in this version).


    If Constrain Header is set to false it will not jump in 6.5.3 as well.


    https://fiddle.sencha.com/#fiddle/2efd

    Did anyone had the same issue and found a fix for that?
    (Video showing this problem: http://youtu.be/4lReB9Y24Q8?hd=1)

    Thanks,
    Mike

  2. #2

    Default

    I can only add that this is a confirmed bug EXTJS-26887
    Sencha support is not providing any workaround or other resolution offering help for extra money if we want that to be fixed sooner.... hmm great.
    Am I the only one having this issue?

  3. #3
    Sencha Premium User
    Join Date
    Aug 2011
    Posts
    5

    Default

    Hi,

    I think I have fixed this bug overriding the function `createGhost` in `window`.
    As you can see in the following fiddle, I set `x` and `y` in the ghost panel, getting their values from its window.
    Doing this prevents the ghost panel to be auto-positioned.

    https://fiddle.sencha.com/#fiddle/2q1b

    Keep in touch

  4. #4

    Default

    Quote Originally Posted by adribea View Post
    Hi,

    I think I have fixed this bug overriding the function `createGhost` in `window`.
    As you can see in the following fiddle, I set `x` and `y` in the ghost panel, getting their values from its window.
    Doing this prevents the ghost panel to be auto-positioned.

    https://fiddle.sencha.com/#fiddle/2q1b

    Keep in touch
    YES! That is perfect, thanks for that.
    I have just made a small override for that that based on your fiddle and it seems to do the trick as well
    Code:
    Ext.define(null, {    override: 'Ext.window.Window',
        createGhost: function(cls) {
            var ghost = this.callParent(arguments);
            var me = this;
            ghost.x =  me.getX();
            ghost.y = me.getY();
    
    
            return ghost;
        }
    });
    You have to be carefull with callParent in overrides, as this will actually call original function in Window, that is overrriden class.
    Sometimes its better to use me.callSuper()

Similar Threads

  1. Window with constrainHeader set jumps to middle of screen
    By gwyn_carwardine in forum Ext JS 6.x Bugs
    Replies: 2
    Last Post: 6 Jul 2018, 2:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •