Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    19
    Vote Rating
    1
    rplotkin is on a distinguished road

      0  

    Default [EXT 4.0.x, 4.1pr] Can not cancel resize

    [EXT 4.0.x, 4.1pr] Can not cancel resize


    ISSUE: After applying a listener to the resize and/or resizedrag events, returning false will not cancel the resize.

    The source code appears to be lacking any implementation for handling the return value; this looks to be true in the source for Resizer and ResizeTracker in both ExtJS 4.0.7 and 4.1.

    In fact, if you override the "onResize" method of resizer and simply have it return false, it does not adversely impact the resizing. (Well, it's bad, in that the resize should be cancelled.)

    When fixing this bug, it could also be made more clear what canceling on a resize vs. a resizedrag will do. For example, if I return false on a resizedrag, I would think it should just not let me continue to resize (beyond, say, some sort of boundary condition that I implement in my app); it should not return to its original size... but when I return false on a resize, perhaps it should return to its original size? Seems like something that should be customizable like DragDrop (and ResizeTracker is a DragTracker).

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Vote Rating
    834
    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


    Did you try with the beforeresize event on the Ext.resizer.Resizer?
    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.

  3. #3
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    19
    Vote Rating
    1
    rplotkin is on a distinguished road

      0  

    Default


    No, I don't think I did. Not the use-case I was going after; I needed to cancel (or, really, to intercept control of) a resize when the object hit a particular boundary.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Vote Rating
    834
    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


    The resize event is not cancelable. The beforeresize event on the Ext.resizer.Resizer is the only resize event that can cancel a resize.
    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.

  5. #5
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    19
    Vote Rating
    1
    rplotkin is on a distinguished road

      0  

    Default


    We should re-classify as a documentation bug, then. resizedrag says "Fires during resizing. Return false to cancel resize."

  6. #6
    Sencha User
    Join Date
    Mar 2012
    Posts
    84
    Vote Rating
    0
    suamikim is on a distinguished road

      0  

    Default


    8 months passed and the docs still say "Fires during resizing. Return false to cancel resize." for the resizedrag-event...

    Please fix this, i just wasted 1 1/2 hour looking for the info that the docs are not correct.

    Thanks

  7. #7
    Sencha User murrah's Avatar
    Join Date
    Oct 2007
    Location
    Katoomba, Blue Mountains, west of Sydney, Australia
    Posts
    384
    Vote Rating
    11
    murrah will become famous soon enough

      0  

    Default


    Ditto re docs. I was debugging for a while before I discovered this post. Please correct the docs to remove "Return false to cancel resize." for resizedrag.

    Or even better - allow the resize to be cancelled! :-)

  8. #8
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    53
    Vote Rating
    0
    Drömbolaget is an unknown quantity at this point

      0  

    Default Got bitten by need to cancel resize on resizeDrag too

    Got bitten by need to cancel resize on resizeDrag too


    Just needed that feature today, be able to cancel a resize on resizeDrag event. The resize might be allowed for a couple of pixels and then be cancelled when some algorithm concludes that further resize is not allowed. There is no way to do that now?

    I'd say this is more than a doc bug, it's a missing feature.

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