Results 1 to 2 of 2

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

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Answers
    12
    Vote Rating
    2
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,070
    Answers
    3976
    Vote Rating
    1394
      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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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