Results 1 to 3 of 3

Thread: Possible Bug with resizable when using constrainTo

  1. #1
    Sencha User mxracer's Avatar
    Join Date
    Apr 2007
    Location
    Napoleon, OH
    Posts
    299
    Vote Rating
    0
      0  

    Default Possible Bug with resizable when using constrainTo

    I am playing around with a resizable image (that is draggable) and having it constrained to a container element.

    If you goto this link: http://www.qwikioffice.com/forum-exa...inTo-test.html
    you will notice the following:

    1.) When the page loads you can drag the image around, and it is constrained to the container (light grey backround).

    2.) But if you resize the image and then drag it around the container, you can see that the constraint is tied to the original dimensions of the image.

    Is this a possible bug?

    I have been able to listen for the resize event and simply call constrainTo again to fix this, but is this the proper way to do it.

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default

    constrainTo operates similar to the other constrain functions. If something changes, you have to let it know. There is a post in the forums wih a simple 2-3 liner that sets it to reconstrain on each drag.
    Jack Slocum
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

  3. #3
    Sencha User
    Join Date
    Mar 2008
    Posts
    129
    Vote Rating
    1
      0  

    Default [3.0.0 Fix available] - [REOPEN in 3.1.1]


Posting Permissions

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