This is what I'm looking at in the code, a little different than what you show.
_setPositionStyle: function(a) {
var b;
this.position.zIndex && (a.zIndex = this.position.zIndex);
this.position.left = a.left;
this.position.top =
a.top;
this.position.width = a.width;
this.position.height = a.height;
b = h.getPositionStyle(a);
e.mixin(b, a.borderRadiusStyle);
c.set(this.domNode, b)
},
onWindowResize: function() {
var a, b = {};
window.appInfo.isRunInMobile ? (a = "map" === this.position.relativeTo ? this.map.id : window.jimuConfig.layoutId, a = f.getMarginBox(a), b.left = 0, b.top = 0, b.width = a.w, b.height = a.h, b.zIndex = this.position.zIndex) : (b = e.clone(this.position), "minimized" === this.windowState && (b.height = this.titleHeight));
b = h.getPositionStyle(b);
b.position = "absolute";
"auto" === b.zIndex && (b.zIndex = 0);
c.set(this.domNode, b);
this._onResponsible()
},
setPosition: function(a, b) {
var d, g, k;
b || (b = "map" === a.relativeTo ? this.map.id : window.jimuConfig.layoutId);
d = f.getMarginBox(b);
k = Math.floor(d.w / (a.width + a.margin));
g = Math.floor(a.index / k);
a.left = (g + 1) * a.margin + a.index % k * (a.width + a.margin);
a.top -= a.margin * g;
this.position = e.clone(a);
window.appInfo.isRunInMobile && (a.left = 0, a.top = 0, a.width = d.w, a.height = d.h);
d = h.getPositionStyle(a);
d.position = "absolute";
"auto" === d.zIndex && (d.zIndex =
0);
p.place(this.domNode, b);
c.set(this.domNode, d);
this._onResponsible()
},