Skip to content

Resizable: correct aspectRatio handling with min/max dimensions - Fixed #4951 #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 60 commits into from

Conversation

jfremy
Copy link

@jfremy jfremy commented Dec 13, 2010

The resizable code did not handle aspectRatio + min/max dimension sizes correctly.
I corrected two issues:

  • the _aspectRatio function used csize.width/height to compute the other dimension based on the aspect ratio while it should have used data.width/height
  • the _respectSize function modified the width/height to respect the constraints but did not take the aspect ratio into account which led to invalid dimensions from the aspect ratio point of view.

The commit is https://github.com/jfremy/jquery-ui/commit/b63a3efbc46a2bca6ecdc1abaf20c4b3f16ecf59. It seems my pull request is including other commits but they've already been merged. I don't know enough about git to figure out why it's doing it.

@jfremy
Copy link
Author

jfremy commented Dec 28, 2010

Hi,
is there anything wrong with the patch that I should amend? It fixes the bug #4951 and also all the unit tests related to aspect ratio + size constraints. I tested the resizable visual tests and I did not see anything wrong.
Let me know if you want me to do something differently

Jeff

@aaronchi
Copy link
Contributor

I would love to see this added

rdworth and others added 28 commits March 28, 2011 11:13
…81 - Slider: value and values methods as setters aren't chainable.
… more useful than an incomplete listing of tests.
…ows only single year in year dropdown if numberOfMonths > 1.
scottgonzalez and others added 29 commits April 4, 2011 17:06
…31 - Tabs: Add beforeload event; deprecate ajaxOptions and cache options.
…quest background-image on resizable handles to work around an IE bug. Fixed #7233 - Resizable: resizable handles fail to work in IE if transparent and content overlaps
…e:url(about:blank) as it's shorter and safer. Thanks @epascarello . Better fixes #7233 - Resizable: resizable handles fail to work in IE if transparent and content overlaps
creating the tooltip element on the fly, never reusing it.
Use aria-describedby attribute to find the associated tooltip again.
Allows customizing animations much easier (just replace fadeIn/fadeOut),
still open.
Updated demos and visual test to replace now-missing .widget() method.
Added tooltipClass for that.
Fixes other popups to close. Also update aria usage.
… Incorrect dateFormat in jquery.ui.datepicker-nl.js.
… issue where the submenu jumped when mousing over the parent item's menu icon.
…7211 - Position: Collision: fit doesn't work at top of window when scrolled
@jfremy jfremy closed this Apr 23, 2011
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.

8 participants