1. #1
    Sencha User xantus's Avatar
    Join Date
    Aug 2007
    Location
    Seattle, WA
    Posts
    135
    Vote Rating
    0
    xantus is on a distinguished road

      0  

    Talking Ext.ux.WindowSnap.DD - Window Edge Snapping!

    Ext.ux.WindowSnap.DD - Window Edge Snapping!


    I created a window edge snapping user extension.
    There are two modes, snap while dragging and snap on drop. (with animation)

    It's not perfect, but I believe in "release early, release often"

    Demo and Source: http://xant.us/ext-ux/examples/window-edge-snap/
    License: Same as Extjs 2.0

    Enjoy!

    Oh, btw. Comet Desktop is open source now. I will release the code soon, but I need time to clean it up and export it to Google code subversion. See the Comet Desktop project for details, and where to sign up for updates.
    Software Engineer
    http://xant.us/

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    6
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Nice work. I was expecting the windows to snap to the border edge, not other windows....before I actually read your instructions. So I guess that might be the next feature request for your ux, config option to snap to browser edge.

  3. #3
    Sencha User xantus's Avatar
    Join Date
    Aug 2007
    Location
    Seattle, WA
    Posts
    135
    Vote Rating
    0
    xantus is on a distinguished road

      0  

    Default


    Quote Originally Posted by mjlecomte View Post
    Nice work. I was expecting the windows to snap to the border edge, not other windows....before I actually read your instructions. So I guess that might be the next feature request for your ux, config option to snap to browser edge.
    I use constrain: true if I want windows to stay within the browser's area, but that's a good point. I'll add that.
    Software Engineer
    http://xant.us/

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    58
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    That's nice! It's like playing with magnets.

  5. #5
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    6
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Quote Originally Posted by xantus View Post
    I use constrain: true if I want windows to stay within the browser's area, but that's a good point. I'll add that.
    I think skype does something like that. I can't say I've noticed anything else that has that behavior.

    Thought occurred to me, so I'll relay it to you... You might want some kind of config for browser resize as to whether the windows remain snapped to the browser edge or if they stay where they were before browser resize.

  6. #6
    Sencha User xantus's Avatar
    Join Date
    Aug 2007
    Location
    Seattle, WA
    Posts
    135
    Vote Rating
    0
    xantus is on a distinguished road

      0  

    Default


    Quote Originally Posted by mjlecomte View Post
    I think skype does something like that. I can't say I've noticed anything else that has that behavior.

    Thought occurred to me, so I'll relay it to you... You might want some kind of config for browser resize as to whether the windows remain snapped to the browser edge or if they stay where they were before browser resize.
    I was just thinking about that! I was thinking along the lines of pairing up edges of windows and preserving the link until it is broken. That would include window edges. What do you think?
    Software Engineer
    http://xant.us/

  7. #7
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    6
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    sure. it's a little addicting playing with it and resizing the windows, etc.

  8. #8
    Sencha User xantus's Avatar
    Join Date
    Aug 2007
    Location
    Seattle, WA
    Posts
    135
    Vote Rating
    0
    xantus is on a distinguished road

      0  

    Default


    Quote Originally Posted by mjlecomte View Post
    sure. it's a little addicting playing with it and resizing the windows, etc.
    I added a slider for the snapRange, so you can play with the magnetism like qualities of the edges.

    haha, it is addicting.
    Software Engineer
    http://xant.us/

  9. #9
    Sencha User xantus's Avatar
    Join Date
    Aug 2007
    Location
    Seattle, WA
    Posts
    135
    Vote Rating
    0
    xantus is on a distinguished road

      0  

    Default


    I'm also reworking the algorithm that determines where the window edges are. It's primitive now... It's only using x and y ortho.
    Software Engineer
    http://xant.us/

  10. #10
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Great work. definitely creative!