I have a form with a couple of radio options. Clicking them hides or displays a couple of items. When I default the option to display the items and then click the one to hide, the form works fine. But if I default the one to hide the items, when I show the items, the bottom of the form does not show as if the form height is set and and the bottom controls do not show.
I tried different methods to hide and show the controls, but they all have the same effect. Here is the view and the controller code:
...
toggleViewableSections: function () {
var articleInfo = Ext.getCmp('articledetailid');
var checkedValue = Ext.getCmp('feedbacktypeid').getValue()['type']; //get the value of the currently checked item
//articleInfo.getEl().hide();
//articleInfo.getEl().setStyle('display', 'none'); - with different options.
articleInfo.getEl().setVisible(false);
I also added the hideMode to the container, but it didn't do anything....
{
xtype: 'container',
id: 'articledetailid',
hidden: true,
hideMode: 'offsets',
items: [
...
]
},
I resolved the issue with the following workaround:
onLaunch: function () {
// For some reason, when we execute toggleViewableSections, the page is cut off when displaying articledetailid.
// This line was added so that it would render properly.
var articleInfo = Ext.getCmp('articledetailid');
articleInfo.getEl().hide();
},
But I don't believe that this is needed. I must be missing something....