ato-water-lib 0.0.96 → 0.0.97

Sign up to get free protection for your applications and to get access to all the features.
@@ -5723,16 +5723,16 @@ class AtoDefaultGojsEditor {
5723
5723
  return data?.isOnlyShowValue ? 0 : 1;
5724
5724
  }), new go.Binding('minSize', '', (data, panel) => {
5725
5725
  return data?.minSizeValue ?? new go.Size(90, 14);
5726
- // return new go.Size(
5727
- // panel.part?.data?.minSizeValue?.width,
5728
- // NaN
5729
- // );
5726
+ }), new go.Binding('maxSize', '', (data) => {
5727
+ return data?.maxSizeValue;
5730
5728
  }), this.$(go.TextBlock, '', {
5731
5729
  column: 0,
5732
5730
  margin: 0,
5733
5731
  alignment: go.Spot.Left,
5734
5732
  overflow: go.TextBlock.OverflowEllipsis,
5735
5733
  cursor: 'pointer',
5734
+ wrap: go.TextBlock.None,
5735
+ maxSize: new go.Size(Infinity, NaN),
5736
5736
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
5737
5737
  margin: 4,
5738
5738
  }, new go.Binding('text', '', (data, panel) => {
@@ -5754,8 +5754,10 @@ class AtoDefaultGojsEditor {
5754
5754
  }
5755
5755
  return data.color;
5756
5756
  }), new go.Binding('maxSize', '', (data) => {
5757
+ if (!data?.isReadOnly && !this._initialOptions.isReadOnly) {
5758
+ return new go.Size(data?.maxSizeValue?.width ? (data?.maxSizeValue?.width - 15) : NaN, data?.maxSizeValue?.height ?? NaN);
5759
+ }
5757
5760
  return data?.maxSizeValue;
5758
- // new go.Size(data?.maxSizeValue || 190, 14);
5759
5761
  }), new go.Binding('font', '', (data) => {
5760
5762
  return data?.font;
5761
5763
  })), this.$(go.Picture, {