Results 1 to 7 of 7

Thread: Floating window constrained to center panel shifts on collapsing west panel

  1. #1
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    180

    Question Floating window constrained to center panel shifts on collapsing west panel

    Hi,
    My viewport has a border layout with collapsible west panel. I show an Ext window on top right side of center panel and window is also constrained to center panel. However when I collapse the west panel, the position of the window also shifts to left.
    How can I restrict shifting of window on collapsing of west panel?

    Thanks

    Kapil

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Answers
    512

    Default

    Try to call window.doConstrain() after the west collapses.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  3. #3
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    180

    Default

    Tried calling win.doConstrain() in collapse event of west panel but it is not working.

    Thanks
    Kapil

  4. #4
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Answers
    512

    Default

    You could test it from Firebug console; you will run it after animation for sure then.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  5. #5
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    180

    Default

    I tried it using Firebug but not working. Am using ExtJS ver 3.0.2.

    Thanks,
    Kapil

  6. #6
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    180

    Default

    Any update on this?

    Thanks
    Kapil

  7. #7
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Answers
    512

    Default

    The next steep could be to step into doConstrain method of the window to see if all variables have expected values and if expected code branches are executed.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


Posting Permissions

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