Results 1 to 5 of 5

Thread: Ext JS resizer sets height when resizing east/west

    You found a bug! We've classified it as EXTJS-23646 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,153

    Default Ext JS resizer sets height when resizing east/west

    Resizer should not always set a new box, if user is resizing only one side. If I resize east/west, I expect that no new height is set. We use % based heights, and Ext JS resizer obstructs our sizing which leads to visible quirks. Offending code, which should be made smarter:


    Code:
    newBox = {
                width: box.width + widthAdjust,
                height: box.height + heightAdjust,
                x: box.x + adjustX,
                y: box.y + adjustY
            };

  2. #2

    Default

    I think I understand what you are saying. Do you have a fiddle that displays this?


    Kevin Jackson
    Sencha Support Team

  3. #3
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,153

    Default

    Quote Originally Posted by Kevin Jackson View Post
    I think I understand what you are saying. Do you have a fiddle that displays this?


    Kevin Jackson
    Sencha Support Team

    No test case but just read the 'updateDimensions' method in Ext.resizer.ResizeTracker. It's obvious.

  4. #4

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  5. #5
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,153

    Default

    Patch:
    Code:
    Ext.resizer.ResizeTracker.prototype.resize = function(box, atEnd) {
           var me = this,
               region = me.activeResizeHandle.region,
               target,
               setPosition = me.setPosition;
    
           // We are live resizing the target, or at the end: Size the target
           if (me.dynamic || (!me.dynamic && atEnd)) {
               // Resize the target
               if (setPosition) {
                   me.target.setBox(box);
               } else {
                   if (region === 'east') {
                       me.target.setWidth(box.width);
                   }
                   else if (region === 'south') {
                       me.target.setHeight(box.height);
                   }
                   else {
                       me.target.setSize(box.width, box.height);
                   }
               }
    
           }
    
           // In the middle of a resize - just resize the proxy
           if (!atEnd) {
               target = me.getProxy();
               if (target && target !== me.target) {
                   if (setPosition || me.hideProxy) {
                       target.setBox(box);
                   } else {
                       target.setSize(box.width, box.height);
                   }
               }
           }
       };

Similar Threads

  1. Replies: 2
    Last Post: 19 Jul 2016, 12:37 AM
  2. [CLOSED] [ExtJS4.1 RC1] Resizer: resizing textarea is not fit to resizer.
    By chenjie100 in forum Ext:Bugs
    Replies: 3
    Last Post: 2 Apr 2012, 8:55 PM
  3. close west, expand east
    By aracandrade in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 26 Feb 2009, 4:48 PM
  4. LayoutRegion.WEST and EAST thoughts
    By OhioHouse in forum Community Discussion
    Replies: 3
    Last Post: 9 Sep 2008, 11:23 AM
  5. east west region inside tabpanel
    By anilsonawane in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 20 May 2008, 11:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •