Results 1 to 3 of 3

Thread: Ext.Resizable aspect ratio

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    11

    Default Ext.Resizable aspect ratio

    How can I set the aspect ratio in Ext.Resizable? I see an option called preserveRatio, but that appears to be boolean (as opposed to numeric/string). I was hoping to be able to specify 1 for square, 1.333 for 4:3, etc.

    Thanks,

    - Joe

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    From the docs:

    ...preserve the original ratio between height and width...
    So it will be 1 for a square, 1.333 for 4:3 if that is the original height/width ratio.

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    11

    Default

    Thanks, I saw that, but I'm not looking to PRESERVE the aspect ratio of the original image I want to SET the aspect ratio of the resize handles (to say, force the resized image to be square for example).\

Similar Threads

  1. Preserve Aspect Ratio while Holding Shift
    By bryman55 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 8 Feb 2009, 1:21 AM
  2. resizeable Window and aspect ratio.
    By [email protected] in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 11 Mar 2008, 6:59 AM
  3. Keep aspect ratio of images in HtmlEditor?
    By gizzmo in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 15 Feb 2008, 1:57 PM
  4. Resizable Preserve Ratio in corners only ? Is Possible ? ? ?
    By slim7 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 18 Jan 2008, 9:20 AM
  5. Disabling the lightbox-y aspect of dialogs.
    By ilazarte in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 18 Oct 2007, 7:40 AM

Posting Permissions

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