theme fixes

This commit is contained in:
yuri
2016-08-08 10:18:06 +03:00
parent c1bcc44f04
commit 25d6fb6d82
4 changed files with 9 additions and 5 deletions
@@ -1,5 +1,6 @@
{
"stylesheet": "client/css/espo.css",
"dashboardCellHeight": 155,
"dashboardCellMargin": 19
"dashboardCellMargin": 19,
"navbarHeight": 44
}
@@ -1,5 +1,6 @@
{
"stylesheet": "client/css/sakura.css",
"dashboardCellHeight": 155,
"dashboardCellMargin": 19
"dashboardCellMargin": 19,
"navbarHeight": 44
}
@@ -1,5 +1,6 @@
{
"stylesheet": "client/css/violet.css",
"dashboardCellHeight": 155,
"dashboardCellMargin": 19
"dashboardCellMargin": 19,
"navbarHeight": 44
}
+3 -2
View File
@@ -181,10 +181,11 @@ Espo.define('views/site/navbar', 'view', function (Dep) {
var tabCount = this.tabList.length;
var $navbar = $('#navbar .navbar');
var navbarNeededHeight = 45;
var navbarNeededHeight = (this.getThemeManager().getParam('navbarHeight') || 44) + 1;
$moreDd = $('#nav-more-tabs-dropdown');
var navbarBaseWidth = this.getThemeManager().getParam('navbarBaseWidth') || 546;
var updateWidth = function () {
var windowWidth = $(window.document).width();
@@ -203,7 +204,7 @@ Espo.define('views/site/navbar', 'view', function (Dep) {
var headerWidth = this.$el.width();
var maxWidth = headerWidth - 546 - moreWidth;
var maxWidth = headerWidth - navbarBaseWidth - moreWidth;
var width = $tabs.width();
var i = 0;