From e72f367a3a8194a4bdbe3e7e560a8a6289b2846d Mon Sep 17 00:00:00 2001 From: Benjamin Renard <benjamin.renard@akka.eu> Date: Thu, 2 Jul 2015 10:58:29 +0200 Subject: [PATCH] Fix some bugs with astro images interface --- js/app/controllers/AstroImagesModule.js | 6 ++++-- js/app/views/AstroImagesUI.js | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/js/app/controllers/AstroImagesModule.js b/js/app/controllers/AstroImagesModule.js index 324dac4..810d90b 100644 --- a/js/app/controllers/AstroImagesModule.js +++ b/js/app/controllers/AstroImagesModule.js @@ -33,7 +33,8 @@ Ext.define('amdaDesktop.AstroImagesModule', { title:this.title, layout: 'fit', width:650, - height:600, + height:600, + minHeight: 600, modal: true, iconCls: this.icon, animCollapse:false, @@ -75,6 +76,7 @@ Ext.define('amdaDesktop.AstroImagesModule', { { fn : function(o) { + win.doLayout(); var astrotabsUI = win.queryById('astrotabs'); astrotabsUI.setActiveTab(apisPanel); hstPanel.forceRefresh(); @@ -87,4 +89,4 @@ Ext.define('amdaDesktop.AstroImagesModule', { win.show(); return win; } -}); \ No newline at end of file +}); diff --git a/js/app/views/AstroImagesUI.js b/js/app/views/AstroImagesUI.js index 9e4be8c..489637e 100644 --- a/js/app/views/AstroImagesUI.js +++ b/js/app/views/AstroImagesUI.js @@ -614,7 +614,8 @@ Ext.define('amdaUI.AstroImagesUI', { listeners: { // Change content dynamically depending on which element triggered the show. beforeshow: function (tip) - { + { + view = tree.getView(); record = view.getRecord(tip.triggerElement); if (record) { @@ -721,4 +722,4 @@ Ext.define('amdaUI.AstroImagesUI', { }; Ext.apply (this , Ext.apply (arguments, myConf)); } -}); \ No newline at end of file +}); -- libgit2 0.21.2