I just started going through this tutorial - seems very cool. One of the first things to try, though, is
myDiv.highlight();
It follows a link to the API documentation for Element. I couldn't find a reference in the documentation to "highlight." I believe it should be in the public method section of the element class. Is the documentation in error? am I looking in the wrong place? Either way, this might not be the best example for the tutorial since there seems to be a mis-connect.
---
highlight is actually listed in the Fx class in the docs, but it is applied to Element at runtime. I will add a section at the top of the Element docs listing the supported Fx methods as this is a frequent question. -Brian
Cross-browser problem In the example I did the following in ExtStart.js :
Ext.onReady(function() {
Ext.get('myButton').on('click',function() {
var myDiv = Ext.get('myDiv');
myDiv.center();
});
});
Firefox 2.0.11 - DIV is centered but positioned below the button
IE 6.0 - DIV is centered but positioned directly across from the button
Not cross-browser compatible ?????????