matt-curtis / Fluid-for-Sketch

[Sketch Plugin] Sketch-flavored Auto Layout-like Constraints
2.38k stars 69 forks source link

retain aspect ratio when resizing and updating layout. #50

Closed didimedina closed 9 years ago

didimedina commented 9 years ago
Problem story:

If I have an element that needs to remain 100% of my viewports width but yet also retain its original aspect ratio before being resized - how would one go about achieving that? image

Proposed solution:

If you lock layerA's width and height and you set a constraint saying layerA = 100% width of canvas it should resize but retain its aspect ratio. image

Currently if you lock a layers dimensions it doesn't resize at all when you update layout. image

Not sure if my proposed solution conflicts with anything but if it doesn't this would be a really rad addition.

Non the less thanks for making this plugin, its one of my favorites :)

didimedina commented 9 years ago

ticket already exists... https://github.com/matt-curtis/Fluid-for-Sketch/issues/5