[Vtigercrm-commits] [vtiger-commits] r6145 - /vtigercrm/trunk/include/js/general.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu May 18 03:24:01 EDT 2006
Author: don
Date: Thu May 18 01:23:57 2006
New Revision: 6145
Log:
fnvshObj function changed to display the div in side the screen
Modified:
vtigercrm/trunk/include/js/general.js
Modified: vtigercrm/trunk/include/js/general.js
==============================================================================
--- vtigercrm/trunk/include/js/general.js (original)
+++ vtigercrm/trunk/include/js/general.js Thu May 18 01:23:57 2006
@@ -1341,10 +1341,18 @@
var tagName = document.getElementById(Lay);
var leftSide = findPosX(obj);
var topSide = findPosY(obj);
- tagName.style.left= leftSide + 'px';
+ var maxW = tagName.style.width;
+ var widthM = maxW.substring(0,maxW.length-2);
+ var getVal = eval(leftSide) + eval(widthM);
+ if(getVal > innerWidth ){
+ leftSide = eval(leftSide) - eval(widthM);
+ tagName.style.left = leftSide + 'px';
+ }
+ else
+ tagName.style.left= leftSide + 'px';
tagName.style.top= topSide + 'px';
- tagName.style.visibility = 'visible';
tagName.style.display = 'block';
+ tagName.style.visibility = "visible";
}
function fninvsh(Lay){
More information about the vtigercrm-commits
mailing list