mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user