Issue #2960Opened August 17, 2020by jayeshmotwani0 reactions

BUG: The UI for Margin and Padding properties inside the sector

Question

Hello,

I am creating a sector for just margin and padding with the code below:

{
	name: 'Layout Settings',
	open: false,
	buildProps: ['margin', 'padding'],
	properties: [
		{
			property: 'margin',
			properties: [
				{name: 'Top', property: 'margin-top'},
				{name: 'Bottom', property: 'margin-bottom'},
				{name: 'Left', property: 'margin-left'},
				{name: 'Right', property: 'margin-right'}
			],
		},
		{
			property: 'padding',
			properties: [
				{name: 'Top', property: 'padding-top'},
				{name: 'Bottom', property: 'padding-bottom'},
				{name: 'Left', property: 'padding-left'},
				{name: 'Right', property: 'padding-right'}
			],
		}
	]
}

And the sector is created with Margin Properties as shown in below screenshot:

Grapes js margin placement

As you could see, the properties are placed in the same row. I want them to be displayed as 2 properties only in a row. Please refer the below screenshot for more information:

Grapes js width and height placement

Thanks for your help.

Answers (3)

RJCAMAugust 17, 20200 reactions

Hi @jayeshmotwani, wich version are you using? I've just copy/paste your code and it seems working as you expect like in your second image, not the first. I've also did it in the demo, works fine, the properties are organized with 2 prop in the same row. See below: image

jayeshmotwaniAugust 17, 20200 reactions

Hello @RJCAM,

Thanks for your reply. I am using version 0.16.18

jayeshmotwaniAugust 17, 20200 reactions

Ahhh! I just realized! It is because I increased the size of the panel!

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.