Auto-Layout
Auto-Layout copied to clipboard
Not possible to align stack to the right?
I have a stack of icons that should always stay aligned to the right of the "toolbar", but whenever I move some icon toward the left edge (in first position), the stack is resized and is now not aligned to the right edge of the toolbar. I tried to use Pin right, but the pin gets adjusted automatically when I drag an item. Am I missing something?
Nope, unfortunately the bug (or not ideal behavior) has been around for a while.
I had to resort to adding an extra icon to the toolbar, turning the toolbar into a symbol and masking the icons inside the toolbar symbol and shifting them to the right so the extra icon is not visible. So the extra icon works as an anchor and then you show/hide icon via overrides.
On Mon, Mar 12, 2018 at 14:23 najiglass [email protected] wrote:
I have a stack of icons that should always stay aligned to the right of the "toolbar", but whenever I move some icon toward the left edge (in first position), the stack is resized and is now not aligned to the right edge of the toolbar. I tried to use Pin right, but the pin gets adjusted automatically when I drag an item. Am I missing something?
[image: stacks left] https://user-images.githubusercontent.com/12573714/37302102-d3912df8-25e7-11e8-935c-a038c3fce0b2.gif
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AnimaApp/Auto-Layout/issues/74, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWfFVCOug1VZyWGbYcTIr7eOUr0jYH0ks5tdr09gaJpZM4SnJh0 .
--
Francesco Bertocci | Strategy + Design + Development +1(646)226.1820 | [email protected]
See my portfolio & availability on Free&Willing: FreeAndWilling.com/fbmore https://freeandwilling.com/fbmore?go=email-signature
@najiglass could you group your stacked group and give align pins to it. remove stacked group pins.
I wanted to test it but strangely this trick worked for aligning vertically but here it doesn't work.
@delizade Thanks, unfortunately that doesn't work because the group still gets resized. It's not much of an alignment problem but rather that the group becomes "shorter" on one side and longer on another then you move the first or last element of the stack.