Commit e72f367a3a8194a4bdbe3e7e560a8a6289b2846d

Authored by Benjamin Renard
1 parent 256bc35c

Fix some bugs with astro images interface

js/app/controllers/AstroImagesModule.js
... ... @@ -33,7 +33,8 @@ Ext.define('amdaDesktop.AstroImagesModule', {
33 33 title:this.title,
34 34 layout: 'fit',
35 35 width:650,
36   - height:600,
  36 + height:600,
  37 + minHeight: 600,
37 38 modal: true,
38 39 iconCls: this.icon,
39 40 animCollapse:false,
... ... @@ -75,6 +76,7 @@ Ext.define('amdaDesktop.AstroImagesModule', {
75 76 {
76 77 fn : function(o)
77 78 {
  79 + win.doLayout();
78 80 var astrotabsUI = win.queryById('astrotabs');
79 81 astrotabsUI.setActiveTab(apisPanel);
80 82 hstPanel.forceRefresh();
... ... @@ -87,4 +89,4 @@ Ext.define('amdaDesktop.AstroImagesModule', {
87 89 win.show();
88 90 return win;
89 91 }
90   -});
91 92 \ No newline at end of file
  93 +});
... ...
js/app/views/AstroImagesUI.js
... ... @@ -614,7 +614,8 @@ Ext.define('amdaUI.AstroImagesUI', {
614 614 listeners: {
615 615 // Change content dynamically depending on which element triggered the show.
616 616 beforeshow: function (tip)
617   - {
  617 + {
  618 + view = tree.getView();
618 619 record = view.getRecord(tip.triggerElement);
619 620 if (record)
620 621 {
... ... @@ -721,4 +722,4 @@ Ext.define('amdaUI.AstroImagesUI', {
721 722 };
722 723 Ext.apply (this , Ext.apply (arguments, myConf));
723 724 }
724   -});
725 725 \ No newline at end of file
  726 +});
... ...