allow wider width, fix an issue with dropped resized height (#232814)

* remove dead code

* allow wider width, fix an issue with dropped resized height
This commit is contained in:
Johannes Rieken
2024-11-01 13:20:23 +01:00
committed by GitHub
parent 702e6b8155
commit 3ee667af42
3 changed files with 3 additions and 10 deletions

View File

@@ -153,7 +153,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
const info = this.editor.getLayoutInfo();
let width = info.contentWidth - (info.glyphMarginWidth + info.decorationsWidth);
width = Math.min(640, width);
width = Math.min(850, width);
this._dimension = new Dimension(width, heightInPixel);
this.widget.layout(this._dimension);
@@ -213,7 +213,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
override updatePositionAndHeight(position: Position): void {
const revealZone = this._createZoneAndScrollRestoreFn(position);
super.updatePositionAndHeight(position, this._computeHeight().linesValue);
super.updatePositionAndHeight(position, !this._usesResizeHeight ? this._computeHeight().linesValue : undefined);
revealZone();
}