Infobulle : avoid that the info balloon exceed limit of the display
This commit is contained in:
parent
2c48befc1d
commit
504d45e6b0
1 changed files with 2 additions and 0 deletions
|
|
@ -54,7 +54,9 @@ function hideBulle(p_ctl)
|
|||
}
|
||||
function displayBulle(p_comment) {
|
||||
var d=document.getElementById('bulle');
|
||||
var viewport = document.viewport.getDimensions();
|
||||
d.innerHTML=p_comment;
|
||||
if ( posX+offsetX > viewport.width-d.getWidth()) { posX-=d.getWidth()+20;}
|
||||
d.style.top=posY+offsetY+"px";
|
||||
d.style.left=posX+offsetX+"px";
|
||||
d.style.visibility="visible";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue