@opentui/core 0.1.10 → 0.1.11

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.
Files changed (3) hide show
  1. package/index.js +2 -11
  2. package/index.js.map +3 -3
  3. package/package.json +7 -7
package/index.js CHANGED
@@ -9808,20 +9808,11 @@ class TextRenderable extends Renderable {
9808
9808
  const lineInfo = this.textBuffer.lineInfo;
9809
9809
  this._lineInfo.lineStarts = lineInfo.lineStarts;
9810
9810
  this._lineInfo.lineWidths = lineInfo.lineWidths;
9811
- const numLines = this._lineInfo.lineStarts.length;
9812
- if (this._positionType === "absolute" && this._height === "auto") {
9813
- this._heightValue = numLines;
9814
- this.layoutNode.yogaNode.markDirty();
9815
- }
9816
- const maxLineWidth = Math.max(...this._lineInfo.lineWidths);
9817
- if (this._positionType === "absolute" && this._width === "auto") {
9818
- this._widthValue = maxLineWidth;
9819
- this.layoutNode.yogaNode.markDirty();
9820
- }
9821
9811
  const changed = this.selectionHelper.reevaluateSelection(this.width, this.height);
9822
9812
  if (changed) {
9823
9813
  this.syncSelectionToTextBuffer();
9824
9814
  }
9815
+ this.layoutNode.yogaNode.markDirty();
9825
9816
  this.needsUpdate();
9826
9817
  }
9827
9818
  setupMeasureFunc() {
@@ -11057,5 +11048,5 @@ export {
11057
11048
  ASCIIFontRenderable
11058
11049
  };
11059
11050
  export { __toESM, __commonJS, __export, __require };
11060
- //# debugId=63F280D9D38C7F3F64756E2164756E21
11051
+ //# debugId=C7BAF498C3DCE8CB64756E2164756E21
11061
11052
  //# sourceMappingURL=index.js.map