Hi Penpot community,
I’m building a plugin that manages color palette, and I’m struggling with the Boards I generate using the Plugin API.
As you can see in the attachment, the padding left and right is inverted. When clicking the button to show the padding, they are inverted once more, and the issue is resolved.
Here is the code snippet I used to configure the padding:
const flex = tagWithIndicator.addFlexLayout()
flex.dir = 'row'
flex.horizontalSizing = 'fit-content'
flex.verticalSizing = 'fit-content'
flex.columnGap = 4
flex.alignItems = 'center'
flex.rightPadding = 2
flex.leftPadding = 8
flex.verticalPadding = 2
The Boards are pretty complex, with a lot of flexible items, depending on the number of color shades.
I can share my document if you need a deeper investigation.