El.prototype = {
/**
- * The element's default display mode (defaults to "")
+ * The element's default display mode (defaults to "")
* @type String
*/
originalDisplay : "",
- visibilityMode : 1,
+
+ // note this is overridden in BS version..
+ visibilityMode : 1,
/**
* The default unit to append to CSS values where a unit isn't provided (defaults to px).
* @type String
var overflowRegex = /(auto|scroll)/;
if(this.getStyle('position') === 'fixed'){
- alert('first');
return Roo.isAndroid ? Roo.get(document.documentElement) : Roo.get(document.body);
}
}
if(parent.dom.nodeName.toLowerCase() == 'body'){
-
- alert('is android : ' + Roo.isAndroid);
- alert('is ios : ' + Roo.isIOS);
-
- if(Roo.isAndroid){
- alert('Is Android');
- return Roo.get(document.documentElement);
- }
-
- if(!Roo.isAndroid){
- alert('not android');
- }
-
return Roo.isAndroid ? Roo.get(document.documentElement) : Roo.get(document.body);
}
}
if(!this._mask){
this._mask = Roo.DomHelper.append(this.dom, {cls:"roo-el-mask"}, true);
}
+
this.addClass("x-masked");
this._mask.setDisplayed(true);
if(typeof msg == 'string'){
if(!this._maskMsg){
- this._maskMsg = Roo.DomHelper.append(this.dom, {cls:"roo-el-mask-msg", cn:{tag:'div'}}, true);
+ this._maskMsg = Roo.DomHelper.append(this.dom, {
+ cls: "roo-el-mask-msg",
+ cn: [
+ {
+ tag: 'i',
+ cls: 'fa fa-spinner fa-spin'
+ },
+ {
+ tag: 'div'
+ }
+ ]
+ }, true);
}
var mm = this._maskMsg;
mm.dom.className = msgCls ? "roo-el-mask-msg " + msgCls : "roo-el-mask-msg";
- if (mm.dom.firstChild) { // weird IE issue?
- mm.dom.firstChild.innerHTML = msg;
+ if (mm.dom.lastChild) { // weird IE issue?
+ mm.dom.lastChild.innerHTML = msg;
}
mm.setDisplayed(true);
mm.center(this);