Skip to content

Commit

Permalink
Added support for breakpointWidget to automatically adapt to width wh… (
Browse files Browse the repository at this point in the history
#179551)

* Added support for breakpointWidget to automatically adapt to width when editor size changes

* 💄

* 💄
  • Loading branch information
weartist authored Apr 11, 2023
1 parent 22ed59e commit 256e9db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vs/workbench/contrib/debug/browser/breakpointWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
this.centerInputVertically();
}

protected override _onWidth(widthInPixel: number): void {
if (typeof this.heightInPx === 'number') {
this._doLayout(this.heightInPx, widthInPixel);
}
}

private createBreakpointInput(container: HTMLElement): void {
const scopedContextKeyService = this.contextKeyService.createScoped(container);
this.toDispose.push(scopedContextKeyService);
Expand Down

0 comments on commit 256e9db

Please sign in to comment.