1. #1
    Sencha Premium Member
    Join Date
    Mar 2010
    Posts
    226
    Vote Rating
    0
    Answers
    4
    abcdef is on a distinguished road

      0  

    Default Unanswered: How do I make a window draggable by its entire body as opposed to only header?

    Unanswered: How do I make a window draggable by its entire body as opposed to only header?


    How do I make a window draggable by its entire body as opposed to only header?

    I have a window that has preventHeader: true. So no header. I would rather like the window to be dragged using any part of the window (this window has a tbar and a bbar - both toolbars could be used as handles including the body itself).

    Is this possible? Is there any other reasonable solution to this problem?

    Please help!

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    Answers
    3157
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Ext.window.Window uses Ext.util.ComponentDragger if the window has a header. Since you do not, you can use the Ext.dd.* classes to enable dragging on the window's el.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.