Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Fix problems detailed in Issue #9 #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Ux/layout/Accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Ext.define('Ux.layout.Accordion', {
toggleOnTitlebar : false
},

constructor: function(container) {
setContainer: function(container) {
this.callParent(arguments);

if (this.getMode() === 'SINGLE') {
Expand Down Expand Up @@ -102,6 +102,9 @@ Ext.define('Ux.layout.Accordion', {
},

collapse: function(component) {
if(!component.isComponent) {
component = Ext.getCmp(component.getId());
}
if (component.isInnerItem() && !(this.getMode() === 'SINGLE' && this.getExpandedItem() === component)) {
var titleDock = component.titleDock,
titleHeight = titleDock.element.getHeight();
Expand Down