commit 6a0a1073527caa46503927903947a7366162eae7 Author: Ben Rohlfs Date: Fri Oct 16 15:01:34 2020 +0200 Fix repositioning the reply dialog when the attention section expands Bug: Issue 13511 Change-Id: I88b7f0ce4249b4d47b27264e71451cf44f971ca5 diff --git a/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.ts b/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.ts index b3478b1..7fc5973 100644 --- a/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.ts +++ b/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.ts @@ -889,6 +889,10 @@ export class GrReplyDialog extends KeyboardShortcutMixin( _handleAttentionModify() { this._attentionExpanded = true; + } + + @observe('_attentionExpanded') + _onAttentionExpandedChange() { // If the attention-detail section is expanded without dispatching this // event, then the dialog may expand beyond the screen's bottom border. this.dispatchEvent(