Skip to content

Commit

Permalink
SF-3154 Fix splitter area shifting when manage audio dialog is closed (
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebuss authored Jan 12, 2025
1 parent 91b4d3a commit de83faa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,14 @@ export class CheckingComponent extends DataLoadingComponent implements OnInit, A
this.getCSSFloatPropertyOf(this.answersPanelContainerElement, 'padding-top') +
this.getCSSFloatPropertyOf(this.answersPanelContainerElement, 'padding-bottom');

const addAnswerButton = document.querySelector('#add-answer') as Element;
const addAnswerButtonHeight = addAnswerButton == null ? 0 : addAnswerButton.getBoundingClientRect().height;

return (
Math.max(distanceFromTopToTotalAnswersMessageBottom, distanceFromTopToAddAnswerButtonBottom) +
answersPanelVerticalPadding +
showUnreadsBannerHeight
showUnreadsBannerHeight +
addAnswerButtonHeight
);
}

Expand Down

0 comments on commit de83faa

Please sign in to comment.