diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-16 01:26:01 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-16 01:26:01 -0400 |
| commit | 67e3a220a622ff1a1a54f04df48d57c34a3a387d (patch) | |
| tree | 1134c8a2344ce9c9109097a801df1b69c7e570bc /src/client/views/presentationview/PresElementBox.tsx | |
| parent | 51066af7ddc8dc890ed67858579227f8484e7263 (diff) | |
fixed compile warn ings.
Diffstat (limited to 'src/client/views/presentationview/PresElementBox.tsx')
| -rw-r--r-- | src/client/views/presentationview/PresElementBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/presentationview/PresElementBox.tsx b/src/client/views/presentationview/PresElementBox.tsx index 56a1cd116..ab4cadab0 100644 --- a/src/client/views/presentationview/PresElementBox.tsx +++ b/src/client/views/presentationview/PresElementBox.tsx @@ -192,9 +192,9 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps, PresDoc const slide = this._itemRef.current!; if (slide && DragManager.docsBeingDragged.length > 0) { const rect = slide.getBoundingClientRect(); - let y = e.clientY - rect.top; //y position within the element. - let height = slide.clientHeight; - let halfLine = height / 2; + const y = e.clientY - rect.top; //y position within the element. + const height = slide.clientHeight; + const halfLine = height / 2; if (y <= halfLine) { slide.style.borderTop = "solid 2px #5B9FDD"; slide.style.borderBottom = "0px"; |
