SmartClient Version: v9.0p_2013-07-16/EVAL Development Only (expires 2013.09.14_09.07.29)
I've got an error "Uncaught TypeError: Cannot read property 'parentElement' of undefined" in ISC_Containers.js?isc_version=v90p_2013-07-16.js:10372
It happens on a call to animateShow on a tab after 'initWidget' of the tab itself. In 8.3 it was working.
I tried to reproduce it in the showCase and I raises the same error:
you can try it in the #tabsOrientation sample, modified like this:
and this test case works with 8.3
I've got an error "Uncaught TypeError: Cannot read property 'parentElement' of undefined" in ISC_Containers.js?isc_version=v90p_2013-07-16.js:10372
Code:
isc.SimpleTabButton.addProperties({
// Override the default width of 100 set on button
width:null,
height:null,
setIcon : function (icon) {
var tabset = this.parentElement.parentElement;
if (!tabset.canCloseTabs && tabset.useIOSTabs) {
// Make sure a previous icon is replaced
this.iOSIcon = null;
}
this.Super("setIcon", arguments);
},
getTitle : function () {
var tabset = this.parentElement.parentElement;
// throws Uncaught TypeError: Cannot read property 'parentElement' of undefined
I tried to reproduce it in the showCase and I raises the same error:
Code:
ErrorType: TypeError ErrorMessage: Cannot read property 'parentElement' of undefined
Code:
isc.TabSet.create({
ID: "topTabSet",
tabBarPosition: "top",
width: 400,
height: 200,
tabs: [
{title: "Blue", icon: "pieces/16/pawn_blue.png", iconSize:16,
visibility:"hidden",
initWidget: function () {
this.Super("initWidget", arguments);
this.animateShow();
},
pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_blue.png"})
},
{title: "Green", icon: "pieces/16/pawn_green.png", iconSize:16,
pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_green.png"})}
]
});
Comment