Page 1 of 1
How to remove responsive layout
Posted: Fri Dec 16, 2022 7:52 am
by terryho
Hi
Yesterday, I had try and test responsive layout on a sample stack.
I don't know what I click and make it un-control in server cards. Is there a way or script to clear out all responsive layout in the stack or card?
It seems in the magic platter there is no such setting.
Regards
Terry Ho
Re: How to remove responsive layout
Posted: Fri Dec 16, 2022 10:27 am
by stam
Hi Terry - Jacque mentioned the settings are stored in a custom property and that they are deletable - but I don't know if that custom property is in object, group, card or stack. Certainly it's a bug and it's being worked on. Hopefully we'll no longer need to do this in the future but for now I guess you'd need to hunt down that custom prop and delete it

Re: How to remove responsive layout
Posted: Fri Dec 16, 2022 6:49 pm
by jacque
Only cards and groups can be containers for responsive layout, so the custom property set will be in one of those places. When you open the card inspector, go to the custom properties pane and use the drop-down in the set button to select responsive layout. Then you can delete it. Do the same for any group that uses the feature.
There is also an empty choice in the popup selectors in the Magic Palette (it's the top line), you can use that to remove any existing setup for a single card or group.
Re: How to remove responsive layout
Posted: Fri Dec 16, 2022 11:50 pm
by jacque
Found it. From the dictionary:
Use the clearLayoutCache command to clear the cache for all objects on the card.
If you choose "ResponsiveLayout" in the dictionary filters, all the relevant keywords are displayed. The descriptions are not always clear, but at least they're available and point in the general direction.
Re: How to remove responsive layout
Posted: Sat Dec 17, 2022 8:16 am
by terryho
Hi All,
Thanks for help. I find the property and delete it.
But it seems there is bug in it. I will try and find the bug and report to Quality.
Regards
Terry Ho
Re: How to remove responsive layout
Posted: Sat Dec 17, 2022 6:38 pm
by jacque
I tried clearLayoutCache from the message box and it wasn't recognized, so I'm not sure how to use it. Anyway, since it only deletes the cache, it probably doesn't delete the properties.