apache / incubator-kie-issues

Apache License 2.0
12 stars 1 forks source link

When editing annotations in DMN decision table, double click shrinks column instead of expanding to fit #534

Open timwuthenow opened 1 year ago

timwuthenow commented 1 year ago

When editing annotations in DMN decision table, double click shrinks column instead of expanding to fit.

Reproducer:

  1. Import sample DMN from KIE Sandbox.
  2. Change annotation column on Credit Score decision table to say "Information"
  3. Write in Row 1: "According to credit source the credit score is excellent"
  4. Double click the outside of the table - column collapses to width of "Information" instead of the width of the contents of the column. This combined with score is split between two lines due to word wrapping.

Expected behavior is either: a) Word wrap does entire content of word, not partial b) Double click expands column to either header or width of cell contents

Due to the variability of the length of column cell contents, there could be a maximum width to expand to when cell contents are larger than header.

jomarko commented 1 year ago

Related to this ticket probably https://github.com/kiegroup/kie-issues/issues/193

tiagobento commented 1 year ago

@jomarko This issue is related to automatically resizing a column based on its contents... I don't see how it's related to #193. Can you share you reasoning?

jomarko commented 1 year ago

@tiagobento I wrote probably, I didn't checked so deeply. Often touching a component reveals also other issues. So maybe fix of #534 or #193 will fix both issues, maybe not. Just good to be aware of issues when someone will be manually checking a fix related to annotation columns.