From 3e2dc7f8fa314935b6d0a83a53ccb9b07004d631 Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Fri, 21 Aug 2015 18:54:22 +0530 Subject: [PATCH] If we are on horizontal form factor set smaller panel height --- shell/contents/layout.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell/contents/layout.js b/shell/contents/layout.js index 11da6471..04d03cf7 100644 --- a/shell/contents/layout.js +++ b/shell/contents/layout.js @@ -24,9 +24,9 @@ panel.height = 60; var bottomPanel = new Panel("org.kde.phone.taskpanel"); bottomPanel.location = "bottom"; -bottomPanel.height = 150; - - - +if (screenGeometry(bottomPanel.screen).height > screenGeometry(bottomPanel.screen.width)) + bottomPanel.height = 150; +else + bottomPanel.height = 60;