File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/hover Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,12 @@ private void updateBrowserSize(final Browser browser) {
109109
110110 safeExecute (browser , "document.getElementsByTagName(\" html\" )[0].style.whiteSpace = \" nowrap\" " ); //$NON-NLS-1$
111111 Double width = 20
112- + (safeEvaluate (browser , "return document.body ? document.body. scrollWidth : null ;" ) instanceof Double evaluated ? evaluated //$NON-NLS-1$
112+ + (safeEvaluate (browser , "return document.body. scrollWidth;" ) instanceof Double evaluated ? evaluated //$NON-NLS-1$
113113 : 0 );
114114 setSize (width .intValue (), hint .y );
115115
116116 safeExecute (browser , "document.getElementsByTagName(\" html\" )[0].style.whiteSpace = \" normal\" " ); //$NON-NLS-1$
117- Double height = safeEvaluate (browser , "return document.body ? document.body. scrollHeight : null ;" ) instanceof Double evaluated //$NON-NLS-1$
117+ Double height = safeEvaluate (browser , "return document.body. scrollHeight;" ) instanceof Double evaluated //$NON-NLS-1$
118118 ? evaluated
119119 : 0d ;
120120 Object marginTop = safeEvaluate (browser , "return window.getComputedStyle(document.body).marginTop;" ); //$NON-NLS-1$
You can’t perform that action at this time.
0 commit comments