commit 1517bc4add34de2ebddf8ada3a6aca7527acd421
parent a02a9039a6b3005ee2d46759ba9b02c6f0e3929f
Author: Felicitus <felicitus@felicitus.org>
Date: Sun, 25 Dec 2011 06:04:09 +0100
Fix for issue #109
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/frontend/js/Components/Part/PartsManager.js b/src/frontend/js/Components/Part/PartsManager.js
@@ -66,10 +66,12 @@ Ext.define('PartKeepr.PartManager', {
this.detailPanel = Ext.create("Ext.tab.Panel", {
title: i18n("Part Details"),
- hidden: true,
+ collapsed: true,
+ collapsible: true,
region: 'east',
split: true,
width: 300,
+ animCollapse: false,
items: [ this.detail, this.stockLevel ]
});
@@ -200,13 +202,13 @@ Ext.define('PartKeepr.PartManager', {
*/
onItemSelect: function () {
if (this.grid.getSelectionModel().getCount() > 1) {
- this.detailPanel.hide();
+ this.detailPanel.collapse();
this.tree.syncButton.disable();
} else if (this.grid.getSelectionModel().getCount() == 1) {
var r = this.grid.getSelectionModel().getLastSelected();
this.detailPanel.setActiveTab(this.detail);
- this.detailPanel.show();
+ this.detailPanel.expand();
this.detail.setValues(r);
this.stockLevel.part = r.get("id");