commit
82d14abd98
|
@ -154,8 +154,14 @@ define([
|
||||||
}
|
}
|
||||||
top = (top!==undefined) ? (top + 'px') : 'auto';
|
top = (top!==undefined) ? (top + 'px') : 'auto';
|
||||||
bottom = (bottom!==undefined) ? (bottom + 'px') : 'auto';
|
bottom = (bottom!==undefined) ? (bottom + 'px') : 'auto';
|
||||||
left = (left!==undefined) ? (left + 'px') : 'auto';
|
|
||||||
right = (right!==undefined) ? (right + 'px') : 'auto';
|
right = (right!==undefined) ? (right + 'px') : 'auto';
|
||||||
|
if (left!==undefined) {
|
||||||
|
var width = this.cmpEl.width();
|
||||||
|
if (left+width>Common.Utils.innerWidth())
|
||||||
|
left = Common.Utils.innerWidth() - width - 10;
|
||||||
|
left = (left + 'px');
|
||||||
|
} else
|
||||||
|
left = 'auto';
|
||||||
this.cmpEl.css({top : top, left: left, right: right, bottom: bottom});
|
this.cmpEl.css({top : top, left: left, right: right, bottom: bottom});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.synch-tip-root {
|
.synch-tip-root {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
z-index: @zindex-navbar + 2;
|
z-index: @zindex-navbar + 2;
|
||||||
@tip-width: 300px;
|
@tip-width: 300px;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue