Strict null work in editorGroupView

This commit is contained in:
Matt Bierner
2019-03-04 16:01:57 -08:00
parent a5d63ae52e
commit 0589591234
5 changed files with 35 additions and 25 deletions

View File

@@ -615,7 +615,7 @@ export interface IDomNodePagePosition {
height: number;
}
export function size(element: HTMLElement, width: number, height: number): void {
export function size(element: HTMLElement, width: number | null, height: number | null): void {
if (typeof width === 'number') {
element.style.width = `${width}px`;
}