[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 137/219: Infobulle : avoid that the info ball
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 137/219: Infobulle : avoid that the info balloon exceed limit of the display |
Date: |
Mon, 18 Dec 2017 13:22:51 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 066b970f110aa0fa9008846d32b459cc0e89f1a2
Author: Dany De Bontridder <address@hidden>
Date: Sat Nov 4 09:33:53 2017 +0100
Infobulle : avoid that the info balloon exceed limit of the display
---
html/js/infobulle.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/html/js/infobulle.js b/html/js/infobulle.js
index 1167c12..381a369 100644
--- a/html/js/infobulle.js
+++ b/html/js/infobulle.js
@@ -29,6 +29,9 @@ document.onmousemove=getPosition;
function showBulle(p_ctl){
var d=document.getElementById('bulle');
+ var viewport = document.viewport.getDimensions();
+ if ( posX+offsetX > viewport.width-d.getWidth()) { posX-=d.getWidth()+20;}
+ if ( posY+offsetY > viewport.height-d.getHeight()-20) {
posY-=d.getHeight()+20}
d.innerHTML=content[p_ctl];
d.style.top=posY+offsetY+"px";
d.style.left=posX+offsetX-10+"px";
@@ -57,6 +60,7 @@ function displayBulle(p_comment) {
var viewport = document.viewport.getDimensions();
d.innerHTML=p_comment;
if ( posX+offsetX > viewport.width-d.getWidth()) { posX-=d.getWidth()+20;}
+ if ( posY+offsetY > viewport.height-d.getHeight()-20) {
posY-=d.getHeight()+20}
d.style.top=posY+offsetY+"px";
d.style.left=posX+offsetX+"px";
d.style.visibility="visible";
- [Noalyss-commit] [noalyss] 78/219: InPlace_Switch : add a supplemental javascript command, (continued)
- [Noalyss-commit] [noalyss] 78/219: InPlace_Switch : add a supplemental javascript command, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 10/219: GESTION -> CUST, MANAGER, ADM ... esthetic move the name of the tiers to the right, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 50/219: task #0001467: Journaux VENTES - inversion D/C dans liste de catégorie de fiches, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 169/219: For MSIE, force to unicode (still problem with MSIE11) !, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 94/219: Fix background color for button 'modele operation', Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 139/219: Javascript : small error, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 42/219: SQL : protection injection, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 75/219: PRINTJRN Use new class http_input, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 82/219: Fix Doxygen issue : @example must be in a function otherwise the detailed section of Doxygen disappear, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 64/219: Inplace_Edit : cosmetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 137/219: Infobulle : avoid that the info balloon exceed limit of the display,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 193/219: SansationLight add the readme.txt file with license, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 85/219: Task #1349 : si une seule catégorie de fiche , alors on ne doit pas la choisir, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 07/219: Bug : cannot print action in profil Cannot add a export / printing in profile, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 79/219: PRINTGL : do not print accounting without operation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 182/219: Icon move / fix, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 111/219: Comment Table, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 92/219: Esthetic : hide some columns when screen too small, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 39/219: Acc_Reconciliation : improve function get_amount_noautovat, set the prepare query inside the function, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 172/219: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 143/219: ANC : balance analytique / comptabilité, corrige bug SQL, Dany De Bontridder, 2017/12/18