* @type String
*/
defaultUnit : "px",
+
/**
* Sets the element's visibility mode. When setVisible() is called it
* will use this to determine whether to set the visibility or the display property.
* @return {Roo.Element} this
*/
scrollIntoView : function(container, hscroll){
- Roo.log('scrollIntoView!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
var c = Roo.getDom(container) || document.body;
var el = this.dom;
t = o[1],
b = t+el.offsetHeight,
r = l+el.offsetWidth;
- Roo.log(o);
- Roo.log([el.offsetHeight, el.offsetWidth]);
+
var ch = c.clientHeight;
- Roo.log(ch);
var ct = parseInt(c.scrollTop, 10);
var cl = parseInt(c.scrollLeft, 10);
- Roo.log([ct, cl]);
var cb = ct + ch;
var cr = cl + c.clientWidth;
-
if(t < ct){
c.scrollTop = t;
}else if(b > cb){
c.scrollTop = b-ch;
}
-
if(hscroll !== false){
if(l < cl){
// we wander
var z = 0;
- var dom = this.dom
+ var dom = this.dom;
while (dom && dom.style) {
if (!isNaN(parseInt(dom.style.zIndex))) {
z = Math.max(z, parseInt(dom.style.zIndex));