diff options
author | bobzel <zzzman@gmail.com> | 2025-05-19 19:43:28 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-05-19 19:43:28 -0400 |
commit | 51b4b64eae4749542590785bca9d33d3ccdded69 (patch) | |
tree | eb7e572d864b24a179997bb9038aecf403e73f43 /src/ClientUtils.ts | |
parent | 9eb4669477eb03fb404b11eec41e09a93ec15425 (diff) |
fixed text boxes to calculate height correctly. removed usertag modification time in text. fixed masonry and stacking views with pivots.
Diffstat (limited to 'src/ClientUtils.ts')
-rw-r--r-- | src/ClientUtils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ClientUtils.ts b/src/ClientUtils.ts index cc8b715b4..8eb1a39ec 100644 --- a/src/ClientUtils.ts +++ b/src/ClientUtils.ts @@ -670,7 +670,8 @@ export function setupMoveUpEvents( } export function DivHeight(ele: HTMLElement | null): number { - return ele ? Number(getComputedStyle(ele).height.replace('px', '')) : 0; + const hgt = ele ? Number(getComputedStyle(ele).height.replace('px', '')) : 0; + return Number.isNaN(hgt) ? 0 : hgt; } export function DivWidth(ele: HTMLElement | null): number { return ele ? Number(getComputedStyle(ele).width.replace('px', '')) : 0; |