Skip to content

Commit

Permalink
added minSize in case of dashboard tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa Wagner committed Sep 15, 2015
1 parent 98fabae commit 6f8f33c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions css/searchBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.ui-tabs-vertical .ui-tabs-nav {
padding: .2em .1em .2em .2em;
float: left;
width: auto;
width: 117px;
}

.ui-tabs-vertical .ui-tabs-nav li {
Expand Down Expand Up @@ -47,7 +47,7 @@

#jQueryTabsHeader {
cursor: move;
width: 99%;
width: calc(100% - 117px - 8px);
height: 99%;
z-index: 9999;
border: none;
Expand Down
14 changes: 14 additions & 0 deletions js/searchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,20 @@ define(['jquery', 'jqueryui'], function ($) {
});


// check which tab is activated as Dashboard needs a minSize of 800px to display properly (translates
// into 950 px with the jqueryUiTabs)
$jQueryTabsHeader.tabs({
activate: function (event, ui) {
if (ui.newPanel.attr('id') == "tabs-3") {
$jQueryTabsHeader.resizable("option", "minWidth", 800);
$jQueryTabsHeader.width(800);
$jQueryTabsHeader.resize();
}
else {
$jQueryTabsHeader.resizable("option", "minWidth", 250);
}
}
});


// adding resize functionality
Expand Down

0 comments on commit 6f8f33c

Please sign in to comment.