Page 1 of 1

Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Posted: Sun Dec 16, 2018 3:41 am
by jackhsu0104
as Title ,

Insert image does not generate style "position:xxx", which is correct.

Re: Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Posted: Sun Dec 16, 2018 9:06 am
by Pablo
Margin seem to work correct for the shape.
Can you please provide more details?

Re: Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Posted: Sun Dec 16, 2018 3:08 pm
by jackhsu0104
sorry, I did the test again. only negative value cannot work. If I assign margin top to -50, margin is not work.
and negate value is work for image, so I compared the generate codes for these two object. the only difference is Shape generate "position:relative" in its style property.
to fix this, I need to add custom style "position:absolute" .

Re: Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Posted: Sun Dec 16, 2018 3:41 pm
by Pablo
I'm sorry, negative margins are currently not supported.

Re: Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Posted: Tue Dec 18, 2018 12:51 am
by jackhsu0104
OK,
thanks for your reply.