From b1fcef7a9ee286db036f2bb9fd805f28d383c208 Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Sat, 15 Oct 2016 20:59:20 +0300 Subject: [PATCH] Fix extension windows positioning --- src/browser/extension/background/openWindow.js | 4 ++-- src/browser/views/devpanel.jade | 18 +++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/browser/extension/background/openWindow.js b/src/browser/extension/background/openWindow.js index 232c96bd..c19e4d02 100644 --- a/src/browser/extension/background/openWindow.js +++ b/src/browser/extension/background/openWindow.js @@ -41,8 +41,8 @@ export default function openDevToolsWindow(position) { params.left = window.screen.availLeft + window.screen.availWidth - params.width; break; case 'devtools-bottom': - params.height = 350; - params.top = window.screen.availHeight - params.height; + params.height = 420; + params.top = window.screen.height - params.height; params.width = window.screen.availWidth; break; case 'devtools-panel': diff --git a/src/browser/views/devpanel.jade b/src/browser/views/devpanel.jade index 749b32d0..9f1475a2 100644 --- a/src/browser/views/devpanel.jade +++ b/src/browser/views/devpanel.jade @@ -1,11 +1,15 @@ doctype html html - head - meta(charset='UTF-8') - title Redux DevTools - include ./includes/style.jade + head + meta(charset='UTF-8') + title Redux DevTools + include ./includes/style.jade + style. + html { + min-height: 100px; + } - body - #root - script(src='/js/devpanel.bundle.js') \ No newline at end of file + body + #root + script(src='/js/devpanel.bundle.js')