Resize stacks in their stacking direction
Just think about it. Why is resizing stacks in their stacking direction disabled?
The only thing that comes to mind, is that it might be hard to determine how the stack might behave when growing. But this limits us too much in creating actually dynamic designs. Besides: is it really that hard? I beg to differ.
Say, I have a list item, with an icon of fixed dimensions and a text layer. The list item has padding, and the contents are laid out in a stack: please refer "1. the stack.png" for my example.
I would like the icon to retain its dimensions, so I set its resize behavior to be fixed: "2. the icon.png".
However, I would be fine with the text to resize. This is quite common and generally accepted behavior. So I set the text box to "auto height", so at least the text would wrap if it does not fit anymore on one line. Please refer to "3. the text layer.png".
...but what really has bugged me since I started exploring with stacks since their introduction, is that this sort of dynamism is deliberately left out. As I view it, the limitation is applied to rigorously. I think that applying the limitation could be done smarter. If there is any layer inside of the stack that is capable of resizing dynamically in the stacking direction, then you might as well drop the "no resizing in the stacking direction" constraint of a stack.
Or, to express myself in JS-flavored pseudocode:
horizontalStackGroup.responsiveResize.constraints.fixWidth = !horizontalStackGroup.children.some(childLayer => {
return !childLayer.responsiveResize.constraints.fixWidth
});
This is something that has been bothering me for a long time. All this time, I tried to work around this. But I realize that, in order to create a resilient and versatile design system, this annoyance turns into a extra difficulty in accomplishing my goal.
I also think that tweaking the logic around stacks could very well be low-hanging fruit to improve the versatility of the stacks functionality. Please consider reworking the limitations regarding stacks. It would be very helpful if the limitations were a bit smarter.
-
neil jiohu commented
The purpose of essay writing services is to help students understand and master course content, not to replace their entire learning process. Students should ensure the legality of using essay writing services at https://www.yydaixie.com/ and adhere to their school’s academic integrity guidelines.