Permalink
Browse files

feature inspired by GerHobbelt

  • Loading branch information...
1 parent 7412cd6 commit c4b1c1648d9f86307ae258319906b1a12a3dfc3e @cdotyone cdotyone committed Aug 29, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 Source/Controls/column/column.js
  2. +1 −1 Source/Controls/panel/panel.js
@@ -35,6 +35,7 @@ MUI.Column = new NamedClass('MUI.Column', {
resizeLimit: [],
sortable: true,
isCollapsed: false,
+ keep1PanelOpen: false,
panels: [],
@@ -294,7 +294,7 @@ MUI.Panel = new NamedClass('MUI.Panel', {
var parent = MUI.get($(options.container));
if (parent.isTypeOf('MUI.Column')){
if (expandedSiblings.length == 0 && parent.options.placement != 'main'){
- parent.collapse(); // [i_a] more aptly named than .toggle()
+ if(!parent.options.keep1PanelOpen) parent.collapse();
return;
} else if (expandedSiblings.length == 0 && parent.options.placement == 'main'){
return;

0 comments on commit c4b1c16

Please sign in to comment.