@sme.up/ketchup 11.0.0-SNAPSHOT-20241129144428 → 11.0.0-SNAPSHOT-20241129170944

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -271,7 +271,7 @@ const KupInputPanel = class {
271
271
  index.h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA)),
272
272
  ]
273
273
  : this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
274
- return (index.h(index.Host, { key: 'ebe2852f37b948e01ee368e9420dbc0b27fda03b' }, index.h("style", { key: '0459b34b686414b2051d495d4f41683ee20c6dc1' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '2a9ecec7cc543519ccb079018a05cf8ee33e989b', id: GenericVariables.componentWrapperId }, inputPanelContent)));
274
+ return (index.h(index.Host, { key: '67d267e88ad82f3a15baf1d57ba972bbcaf193e4' }, index.h("style", { key: '51f06b604373a081e5c9c11ab154aea736afcf2c' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'dc34201b29b5f7ecd6784df58ffa554aa5104531', id: GenericVariables.componentWrapperId }, inputPanelContent)));
275
275
  }
276
276
  disconnectedCallback() {
277
277
  __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
@@ -595,20 +595,24 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
595
595
  if (!field.absoluteHeight) {
596
596
  field.absoluteHeight = 1;
597
597
  }
598
- const width = `${getAbsoluteWidth(length)}px`;
599
- const height = `${getAbsoluteHeight(field.absoluteHeight)}px`;
600
- const top = `${getAbsoluteTop(field.absoluteRow)}px`;
601
- const left = `${getAbsoluteLeft(field.absoluteColumn)}px`;
598
+ const absoluteWidth = getAbsoluteWidth(length);
599
+ const absoluteHeight = getAbsoluteHeight(field.absoluteHeight);
600
+ const absoluteTop = getAbsoluteTop(field.absoluteRow);
601
+ const absoluteLeft = getAbsoluteLeft(field.absoluteColumn);
602
602
  const styleObj = {
603
603
  position: 'absolute',
604
- width,
605
- 'min-width': width,
606
- 'max-width': width,
607
- height,
608
- 'min-height': height,
609
- 'max-height': height,
610
- top,
611
- left,
604
+ width: absoluteWidth !== null ? `${absoluteWidth}px` : null,
605
+ 'min-width': absoluteWidth !== null ? `${absoluteWidth}px` : null,
606
+ 'max-width': absoluteWidth !== null ? `${absoluteWidth}px` : null,
607
+ height: absoluteHeight !== null ? `${absoluteHeight}px` : null,
608
+ 'min-height': absoluteHeight !== null ? `${absoluteHeight}px` : null,
609
+ 'max-height': absoluteHeight !== null ? `${absoluteHeight}px` : null,
610
+ top: absoluteTop !== null
611
+ ? `${getAbsoluteTop(field.absoluteRow)}px`
612
+ : null,
613
+ left: absoluteLeft !== null
614
+ ? `${getAbsoluteLeft(field.absoluteColumn)}px`
615
+ : null,
612
616
  overflow: 'auto',
613
617
  };
614
618
  fieldCell.cell.data = Object.assign(Object.assign({}, fieldCell.cell.data), { sizing: 'extra-small', customStyle: (fieldCell.cell.data.customStyle || '') +