Skip to content

Use calculated aspect ratio instead of options' one if containment:parent and aspectRatio:true#599

Closed
gromo wants to merge 1 commit into
jquery:masterfrom
gromo:master
Closed

Use calculated aspect ratio instead of options' one if containment:parent and aspectRatio:true#599
gromo wants to merge 1 commit into
jquery:masterfrom
gromo:master

Conversation

@gromo
Copy link
Copy Markdown

@gromo gromo commented Feb 22, 2012

Use calculated aspect ratio instead of options' one if containment:parent and aspectRatio:true

WHERE: $.ui.plugin.add("resizable", "containment", { resize:
WHAT: change o.aspectRatio to self.aspectRatio in rows 691 and 697

…ent - parent; aspectRatio - true. If it's set to true and left/top resize handlers are out of containment - it uses aspectRatio (true = 1) from options instead of calculated ratio.


WHERE: $.ui.plugin.add("resizable", "containment", { resize:
WHAT: change o.aspectRatio to self.aspectRatio in rows 691 and 697
@scottgonzalez
Copy link
Copy Markdown
Member

Thanks, landed in 3e8ec7e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants