add bottom bound to message visualizer
This commit is contained in:
parent
f0a89bd5e4
commit
2831c11de3
6 changed files with 66 additions and 106 deletions
|
|
@ -9,7 +9,7 @@ export default function useOffsetCalculator() {
|
|||
let previousMessageHeight = 0;
|
||||
const messagePadding = 15;
|
||||
|
||||
function calculateX(message: HTMLElement): void {
|
||||
function calculateX(message: HTMLElement| SVGGElement): void {
|
||||
const computedQuery = window.getComputedStyle(message);
|
||||
const matrix = new WebKitCSSMatrix(computedQuery.webkitTransform);
|
||||
xOffset.value = matrix.m41;
|
||||
|
|
|
|||
Loading…
Reference in a new issue