Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11
    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


    "Jiggling" the resizable out of bounds is fixed , but part of the issue remains:
    • When resizing horizontally, vertical boundingbox is not honored.
    • When resizing verti.., vice versa ^

    Problem easily spottable via running:

    PHP Code:
    var div document.createElement('div');
    div.id='myDiv';
    div.setAttribute('style','background:#ff0;width:500px;height:300px;');

    var 
    img document.createElement('img');
    img.id='myImg';
    img.src='grass.jpg';
    div.appendChild(img);

    document.body.appendChild(div);

    Ext.create('Ext.resizer.Resizer', {
        
    target'myImg',
        
    preserveRatiotrue,
        
    constrainTo'myDiv'
    }); 
    on http://dev.sencha.com/deploy/ext-4.0...zer/basic.html

    Dragging horizontally or vertically will make the resizable break-out of the "other" constraint.
    onerror = setTimeout(Ext.emptyFn, Infinity)

  2. #12
    Sencha User
    Join Date
    Jun 2008
    Posts
    26
    Vote Rating
    0
    astagl is on a distinguished road

      0  

    Default


    Quote Originally Posted by robincasey View Post
    "Jiggling" the resizable out of bounds is fixed , but part of the issue remains:
    • When resizing horizontally, vertical boundingbox is not honored.
    • When resizing verti.., vice versa ^
    Problem easily spottable via running:

    PHP Code:
    var div document.createElement('div');
    div.id='myDiv';
    div.setAttribute('style','background:#ff0;width:500px;height:300px;');

    var 
    img document.createElement('img');
    img.id='myImg';
    img.src='grass.jpg';
    div.appendChild(img);

    document.body.appendChild(div);

    Ext.create('Ext.resizer.Resizer', {
        
    target'myImg',
        
    preserveRatiotrue,
        
    constrainTo'myDiv'
    }); 
    on http://dev.sencha.com/deploy/ext-4.0...zer/basic.html

    Dragging horizontally or vertically will make the resizable break-out of the "other" constraint.
    damn, this is what I'm running into right now with a project I'm working on. It pains me to see that this was never addressed. I might have to scrap this and go with something else. I think that jQuery might have something that would fit in place of resizable.

  3. #13
    Sencha User Nom4d3's Avatar
    Join Date
    Sep 2008
    Location
    Araras / SP / Brazil
    Posts
    81
    Vote Rating
    1
    Nom4d3 is on a distinguished road

      0  

    Default


    No solution for this problem yet?