Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member robincasey's Avatar
    Join Date
    Nov 2007
    Location
    Netherlands, Arnhem
    Posts
    53
    Vote Rating
    0
    robincasey is on a distinguished road

      0  

    Default [OPEN-91][3.0.0] Resizable - preserveRatio + constrainTo

    [OPEN-91][3.0.0] Resizable - preserveRatio + constrainTo


    On the ExtJS examples page of Resizables, run:
    Code:
    var div = Ext.DomHelper.insertBefore(document.body.firstChild, {
        tag: "div",
        style: "background:#ff0;width: 200px;height: 100px;"
    });
    Ext.get("transparent").appendTo(div);
    var transparent = new Ext.Resizable('transparent', {
        wrap:true,
        preserveRatio: true,
        constrainTo: div
    });
    When resizing, only the handle you're using is honoured regarding constrainTo. This also results in an interesting (50%) constraint, when using the SE-handle.
    -->

  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


    You may want to stipulate your observed behavior for each resize handle for each browser you have issues with.

    For example:

    FF3.5.1
    • se resizer doesn't work initially (for given code in given starting conditions)
    • drag east resizer as far right as possible, the resizer won't resize after that (might be related to the other thread by this OP where the resized item actually falls a little outside the constrained area)
    • the south resizer works, but there is a significant delay after clicking the south resizer handle before the resize proxy shows up
    -->

  3. #3
    Sencha User
    Join Date
    Mar 2008
    Posts
    129
    Vote Rating
    0
    art.home.ext is on a distinguished road

      0  

    Default [3.1.1/3.2] status ?

    [3.1.1/3.2] status ?


    any update for this behaviour in future releases ?
    Thanks
    -->

  4. #4
    Ext JS Premium Member robincasey's Avatar
    Join Date
    Nov 2007
    Location
    Netherlands, Arnhem
    Posts
    53
    Vote Rating
    0
    robincasey is on a distinguished road

      0  

    Default


    Yes, still waiting for a fix :-) Note: Its also bugging without the preserveRatio.
    -->

  5. #5
    Sencha User
    Join Date
    Mar 2008
    Posts
    129
    Vote Rating
    0
    art.home.ext is on a distinguished road

      0  

    Default


    Quote Originally Posted by robincasey View Post
    Note: Its also bugging without the preserveRatio.
    You're right

    => Firefox 3.5.2 [3.1.1 - ext-3.2-beta] Bug with all handles with or without preserveRatio
    Last edited by art.home.ext; 19 Mar 2010 at 1:27 PM. Reason: [version info]
    -->

  6. #6
    Ext JS Premium Member robincasey's Avatar
    Join Date
    Nov 2007
    Location
    Netherlands, Arnhem
    Posts
    53
    Vote Rating
    0
    robincasey is on a distinguished road

      0  

    Default


    Yes. Just run my code above without that property. I have also noticed; the bigger the resize handles - and how (distance-wise) 'earlier' you grab them - the further you can drag it out of the constraint region (until cursor hits the boundary).

    And @mjlecomte - I will do that when I have time, xor when the case is not displaying a bug within 2 clicks.
    -->

  7. #7
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    I think there is a lot of confusion on this one because we didn't have the bug standards at the time this was originally entered: http://www.extjs.com/forum/showthread.php?t=71015
    -->

  8. #8
    Sencha User
    Join Date
    Mar 2008
    Posts
    129
    Vote Rating
    0
    art.home.ext is on a distinguished road

      0  

    Default


    You're right!
    It is a way to make it fixed quicker.

    previous post edited for [Release]s.
    -->

  9. #9
    Ext JS Premium Member robincasey's Avatar
    Join Date
    Nov 2007
    Location
    Netherlands, Arnhem
    Posts
    53
    Vote Rating
    0
    robincasey is on a distinguished road

      0  

    Default


    How's this:
    onerror = setTimeout(Ext.emptyFn, Infinity)
    -->