1. #1
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    378
    Vote Rating
    2
    silcreval is on a distinguished road

      0  

    Default [4.1 RC2] Modal windows appear offset

    [4.1 RC2] Modal windows appear offset


    In 4.1 I've noticed that windows which are opened modal appear offset at the bottom of the screen, the only thing you can see is the title. I have 'constrained' set on my windows so they cant be dragged completely off screen. Not sure if this is a z-manager issue.

    With 4.1 the modal 'fade' of the background is also a very slow animation on Firefox 10.

  2. #2
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,341
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      0  

    Default


    Are you able to provide a test case? Modal windows are working fine for me.

  3. #3
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    378
    Vote Rating
    2
    silcreval is on a distinguished road

      0  

    Default


    This was caused by an htmleditor component inside a form in the dialog which was initially hidden. This worked ok in Ext 4.0, but in Ext 4.1 it causes the layout to go haywire. I just made it visible and sanity is restored

  4. #4
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    378
    Vote Rating
    2
    silcreval is on a distinguished road

      0  

    Default


    A bit more information on this:-

    I have a 'htmleditor' in a form, and attached a listerner so that

    Code:
    'afterrender' : function(handle){
      handle.getToolbar().hide();
    }
    this means that once the control is rendered in a form, the toolbar that the
    editor shows by default is hidden.

    THis code works fine in ExtJS 4.0.7.

    However - in ExtJS 4.1 RC2 - the parent window containing the form, is reset
    so that it appears at the bottom left of the screen. The window also can not
    be moved and doesn't respond.

    I think this is some kind of reflow issue. Adding doLayout or doComponentLayout
    doesnt help.

  5. #5
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    378
    Vote Rating
    2
    silcreval is on a distinguished road

      0  

    Default


    Incidently if I use

    Code:
    'afterrender': function(h){
      Ext.defer(function(h){
        h.getToolbar().hide();
      },100,this,[h]);
    }
    it works perfectly in ExtJS 4.1 RC2.

    It looks like 'afterrender' is called before the htmleditor is rendered properly?

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar