Skip to main content

LAUNCHED: True Aspect Ratio Lock


Show first post

214 replies

dennsi
  • Active Member
  • 256 replies
  • February 20, 2024

Great concept! Is the icon below the lock for rounding to full pixels?


wgo
  • New Participant
  • 41 replies
  • February 21, 2024

Is the icon below the lock for rounding to full pixels?

Exactly – was just a quick shot to illustrate the functionality.


alexrest
  • New Participant
  • 12 replies
  • February 22, 2024

This deserves a medal 🏅


Josh_Rhode

I’m 99% certain Figma is not implementing this now just to spite someone.


neff
  • 5 replies
  • March 12, 2024

Coming from XD, this is also one of my biggest pain points.

PLEASE make the “maintain proportions” actually maintain the proportions.
It is resize a group that contains multiple icons.


Ian_Palmgren

I have been asking for this four years. I continue to be dumbfounded that community doesn’t have its pitchforks and torches out rioting for this to be implemented. It’s just such a rudimentary and basic element of web design, I can’t understand how this hasn’t been prioritized.


dennsi
  • Active Member
  • 256 replies
  • March 20, 2024

I really like how Webflow solved this:


Erik_Wetendorf

+1 This is needed so bad.


Jung_Lee1
  • New Member
  • 1 reply
  • March 26, 2024

This feature would’ve been far more useful for more people than Modes.


Patrick_Keenan

+1 need this


Nic77
  • 1 reply
  • April 4, 2024

+1 this is really needed


Stan5
  • 35 replies
  • April 4, 2024

The feature just seems broken


Kyle_Johnson
  • New Participant
  • 5 replies
  • April 9, 2024

+1 Still waiting for this feature 3 years later


ahainen
  • Active Member
  • 41 replies
  • April 11, 2024

The year is 2049. Figma’s built in AI designs entire worlds near instantly. True Aspect Ratio Lock is still on the calendar as TBD.


Rafastesia

Mindblowing we are still waiting for this. I find the need of this feature again and again and again. It is funny I can create such a complex design but not locking an aspect ratio in an image. Seriously, it is completely absurd.


Viktor_Engelbert

What are the odds we will see this fixed at Config? It would be great if Figma fixed this very basic feature before adding advanced features like “code connect” etc


dennsi
  • Active Member
  • 256 replies
  • April 22, 2024

💯💯💯💯💯💯💯💯 absolutely agree


Felix_Bonge

+1 This is such an essential feature. I would have needed this so many times already. Please implement it 🙏


Ian_Palmgren

I have been requesting this feature for 3+ years now. Adding a comment to support this thread and hopefully get some more exposure


MattFannin
  • New Member
  • 7 replies
  • May 10, 2024

Also adding a big +1 to this.

I’ve been using various workarounds for years now, like many others I’m still super surprised this doesn’t exist yet — I swear I google “Figma aspect ratio” once a month just to make sure it hasn’t stealth launched without me noticing!

I did a bit of a deep-dive on the workaround techniques recently and came up with some improvements to the ‘angled line’ one some folks might be interested in (mostly making it much easier to calculate exactly the combination angles needed and removing the need to infinitely nest more spacers inside each other). Also just discovered some kinda weird interesting stuff about auto layout and rotation at the same time.

Made a write up about it here for anyone interested in a distraction while we wait for it! 🤞


Rafastesia

Hi Matt, your article is brilliant. And is a pitty you consumed so much time researching and writing it since we are talking about such an easy and simple feature to implement for Figma’s team. 🤯


MattFannin
  • New Member
  • 7 replies
  • May 14, 2024

Thanks! Haha — I was aware of that before I did it, but tbh it seemed like a waste to have made this library, figured out all the things and then not share it somewhere.


dennsi
  • Active Member
  • 256 replies
  • May 16, 2024

Still sad though that the situation requires people like you to figure out such fiddly workarounds just because Figma is too lazy to focus on implementation of such basic features.


Max_Swearl

+1 Still need this 2 years later


  • 6 replies
  • May 17, 2024

What is so difficult about implementing aspect ratio lock? Auto layout already works with vertical resizing… here is a javascript function that returns the sizes needed to keep an objects aspect ratio. Now just call this function when when the constrain proportions button is toggled on. What is the big deal?

<script>
    function maintainAspectRatio(element) {
        // Calculate the initial aspect ratio
        const initialWidth = element.offsetWidth;
        const initialHeight = element.offsetHeight;
        const aspectRatio = initialWidth / initialHeight;

        // Function to resize the element maintaining the aspect ratio
        function resizeElement() {
            const newWidth = element.offsetWidth;
            const newHeight = newWidth / aspectRatio;
            element.style.height = `${newHeight}px`;
        }

        // Attach the resize event listener
        element.addEventListener('resize', resizeElement);
        
        // Initialize the resizing to maintain the initial aspect ratio
        resizeElement();
    }

    // Get the element and apply the aspect ratio maintenance
    const resizableElement = document.getElementById('resizeable');
    maintainAspectRatio(resizableElement);
</script>

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings