1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    11
    Vote Rating
    1
    skhameneh is on a distinguished road

      1  

    Default Snapping Windows v2

    Snapping Windows v2


    There's a really useful feature in Windows 7 that allows windows to be resized just by dragging them to edges of the screen. Well, I wanted that feature for an ExtJS desktop environment, so here's my solution for Windows 7 style window dragging.
    The following code overrides some functionality in ExtJS and allows windows to be resized in the same manner.
    Features:
    • Windows can be dragged when maximized and will resize when dragged.
    • Dragging a window (cursor within 20 pixels) to top of container will maximize it.
    • Dragging a window (cursor within 20 pixels) to left or right of container will resize it to that half of the container.
    • The window ghost will indicate its new size according to placement when dragging.
    • Windows will restore to their original size before being snapped. (Not working in ExtJS 4 version)
    • Adds snapLeft() and snapRight() functions to the Ext.Window component.
    • Unsnapping windows will position them relative to the original cursor position on the title bar. (v2 only)
    • Supports autoloading (v2 only)
    http://extraordinarythoughts.com/201...pping-windows/

  2. #2
    Sencha User davidkaneda's Avatar
    Join Date
    Jan 2010
    Location
    Bay Area, CA
    Posts
    147
    Vote Rating
    0
    davidkaneda is on a distinguished road

      0  

    Default


    Sounds very cool — Any link to a live demo? Didn't see one on the blog post...

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    11
    Vote Rating
    1
    skhameneh is on a distinguished road

      0  

    Default


    Thanks David, I saw you message Monday, but just now had some time to add a demo.

    http://extraordinarythoughts.com/cod...s/snapwindows/

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi