Sfoglia il codice sorgente

Panel: fixed menu position after moving json to new dropdown

Torkel Ödegaard 11 anni fa
parent
commit
ef92272bee
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/app/directives/panelMenu.js

+ 1 - 1
src/app/directives/panelMenu.js

@@ -43,7 +43,7 @@ function (angular, $, _) {
         link: function($scope, elem) {
         link: function($scope, elem) {
           var $link = $(linkTemplate);
           var $link = $(linkTemplate);
           var $panelContainer = elem.parents(".panel-container");
           var $panelContainer = elem.parents(".panel-container");
-          var menuWidth = $scope.panelMeta.menu.length === 5 ? 246 : 201;
+          var menuWidth = $scope.panelMeta.menu.length === 4 ? 236 : 191;
           var menuScope = null;
           var menuScope = null;
           var timeout = null;
           var timeout = null;
           var $menu = null;
           var $menu = null;