Fix HTML Quirks mode issues

This commit is contained in:
Zaid Abdulla committed 2022-06-29 11:07:42 -07:00
1 parent b0d50b07e7
commit 6f29267266
2 files changed
+18 -5

No files matched your search

+2 -2
View File
@@ -388,7 +388,7 @@ const component: ClosureComponent = (): Component => {
function repositionNotifications(): void {
let top = 10;
for (const c of notificationElements as VnodeDOM[]) {
(c.dom as HTMLDivElement).style.top = `${top}`;
(c.dom as HTMLDivElement).style.top = `${top}px`;
top += (c.dom as HTMLDivElement).offsetHeight + 10;
}
}
@@ -408,7 +408,7 @@ const component: ClosureComponent = (): Component => {
for (const c of drawerElement.children)
height = Math.max(height, c.dom.offsetTop + c.dom.offsetHeight);
}
drawerElement.dom.style.height = height;
drawerElement.dom.style.height = height + "px";
}
if (stagingElements.length + queueElements.length) {