Skip to main content

I’ve created a component with elements that can be toggled on/off using boolean properties. They each work individually however when the subhead and body components are both toggled off the frame that they’re housed in doesn’t reduce it’s height and subsequently the white space from the frame remains at the top of the component.

I’ve double checked and the frames within this component are set to hug contents for height. Open to workarounds but the one’s suggested in this feature thread (such as a 0px line being added) don’t remove the padding between the frame and the rest of the component.

 

 

Hey! I think the problem is your toggles are direct connected to the object layers, but they are wrapped into a frame (content), are you sure this one is set to hug?


I have a very similar situation. I ended up doing an additional Boolean toggle to turn off the Frame that houses the 2 parts (using the example here: Subhead copy and Body copy) that I wanted turned off. It’s definitely not the solution I want because it’s not as clean or intuitive. Hoping someone here has a better solution.


Reply