1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    479
    Answers
    12
    Vote Rating
    0
    abcdef is an unknown quantity at this point

      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
    Gainesville, FL
    Posts
    37,015
    Answers
    3491
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    ________________
    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 in print!

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

Thread Participants: 1