elkjs icon indicating copy to clipboard operation
elkjs copied to clipboard

Question about alignment

Open Vesper0704 opened this issue 2 years ago • 2 comments

Hi, I wonder what's the difference between alignment and contentAlignment ? They seem to fail to work in some cases(eg. alignment: CENTER fails to make the nodes align), is there any precondition for them to take effect, or maybe some options can override them? Thanks!

Vesper0704 avatar Aug 29 '23 11:08 Vesper0704

alignment positions nodes appropriately inside the layer bonds as seen here. contentAlignment works for the content, as seen here.

soerendomroes avatar Aug 29 '23 12:08 soerendomroes

Thanks! that's much more clear to me

Vesper0704 avatar Aug 30 '23 01:08 Vesper0704