From f1d94a6ee70e31fc67de728a5f64555401785767 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 16 Apr 2020 10:58:56 +0530 Subject: [PATCH] Only move defines to top if we are doing a define --- resources/lookup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lookup.js b/resources/lookup.js index 693bfa7da2..aa13c6e725 100644 --- a/resources/lookup.js +++ b/resources/lookup.js @@ -11,14 +11,14 @@ function fix_google_markup() { var cc = document.getElementById('center_col'); cc.style.marginLeft = '0'; - cc.style.position = 'absolute'; - cc.style.top = '0'; - cc.style.left = '0'; cc = document.getElementById('cnt'); if (cc) cc.style.paddingTop = '0'; var params = new URLSearchParams(document.location.search.substring(1)); var q = params.get('q'); if (q && q.startsWith('define:')) { + cc.style.position = 'absolute'; + cc.style.top = '0'; + cc.style.left = '0'; var remove = ['sfcnt', 'top_nav', 'before-appbar', 'appbar', 'searchform', 'easter-egg']; remove.forEach(function(id) { var elem = document.getElementById(id);