Change the order Table's attrs field mapping for width and localId

Issue #112 new
Omair Shakeel created an issue

Inside an {adf:display=block}, the CS renders the table attrs fields in the order where localId is encoded before width. The ADF library encodes the width field followed by localId

Old: {"type":"table","attrs":{"isNumberColumnEnabled":false,"layout":"center","localId":"0c0b618b-9x978-4bc5-a7a4-76f954fb4dc9","width":760},"content":..."

New: {"type":"table","attrs":{"isNumberColumnEnabled":false,"layout":"center","width":760,"localId":"0c0b618b-9978-4bc5-a7a4-76f954fb4dc9"},"content":...

Although it makes no difference to the user, it causes an inconsistency which can be easily fixed in the ADF library by changing the attr field mapping in the Table - to map the localId field first followed by width.

Although the other option is to add an exclusion case, I feel it’s a lot easier to update the library with a simple order change

Comments (0)

  1. Log in to comment