dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
28 lines (22 loc) • 566 B
JavaScript
define([
"dojo/_base/declare",
"dojo/dom-class"
], function(declare, domClass){
// module:
// dojox/mobile/bidi/SimpleDialog
return declare(null, {
buildRendering:function(){
this.inherited(arguments);
if(!this.isLeftToRight()){
if(this.closeButton){
var s = Math.round(this.closeButtonNode.offsetHeight / 2);
this.closeButtonNode.style.left = -s + "px";
}
if(this.center){
domClass.add(this.domNode, "mblProgressIndicatorCenterRtl");
}
domClass.add(this.containerNode, "mblProgContainerRtl");
}
}
});
});