Skip to content

Commit a605d3b

Browse files
committed
undo changes
1 parent e5f46f1 commit a605d3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/hover/FocusableBrowserInformationControl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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$

0 commit comments

Comments
 (0)