Changeset 83454 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Mar 26, 2020 8:40:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/htdocs/js/common.js
r83453 r83454 61 61 return false; 62 62 return navigation.userAgent.indexOf('Edg') >= 0 63 } 64 65 /** 66 * Detects the chromium-based edge browser. 67 */ 68 function isBrowserInternetExplorer() 69 { 70 /* documentMode is an IE only property. Values are 5,7,8,9,10 or 11 71 according to google results. */ 72 if (typeof document.documentMode !== 'undefined') 73 { 74 if (document.documentMode) 75 return true; 76 } 77 /* IE only conditional compiling feature. Here, the 'true || ' part 78 will be included in the if when executing in IE: */ 79 if (/*@cc_on true || @*/false) 80 return true; 81 return false; 63 82 } 64 83 … … 816 835 xPos = xScroll + oRelToRect.right; 817 836 g_oCurrentTooltip.cxMax = cxRight; 818 console.log('tooltipRepositionOnLoad: #5');837 //console.log('tooltipRepositionOnLoad: #5'); 819 838 } 820 839 else … … 824 843 xPos = xScroll; 825 844 g_oCurrentTooltip.cxMax = cxNeeded; 826 console.log('tooltipRepositionOnLoad: #6');845 //console.log('tooltipRepositionOnLoad: #6'); 827 846 } 828 847 g_oCurrentTooltip.xPos = xPos; 829 848 g_oCurrentTooltip.xScroll = xScroll; 830 console.log('tooltipRepositionOnLoad: xPos=' + xPos + ' xScroll=' + xScroll);849 //console.log('tooltipRepositionOnLoad: xPos=' + xPos + ' xScroll=' + xScroll); 831 850 832 851 g_oCurrentTooltip.oElm.style.top = yPos + 'px'; … … 864 883 } 865 884 885 //oTooltip.oElm.setAttribute('style', 'display: block; position: absolute;'); 866 886 oTooltip.oElm.style.position = 'absolute'; 867 887 oTooltip.oElm.style.display = 'block'; … … 969 989 } 970 990 971 console.log('cyNeeded='+cyNeeded+' cyMax='+g_oCurrentTooltip.cyMax+' cySpace='+cySpace+' cy='+cy);972 console.log('oIFrameElement.offsetTop='+oIFrameElement.offsetTop);973 console.log('svnHistoryTooltipOnLoad: cx='+cx+'cxMax='+g_oCurrentTooltip.cxMax+' cxNeeded='+cxNeeded+' cy='+cy+' cyMax='+g_oCurrentTooltip.cyMax);991 //console.log('cyNeeded='+cyNeeded+' cyMax='+g_oCurrentTooltip.cyMax+' cySpace='+cySpace+' cy='+cy); 992 //console.log('oIFrameElement.offsetTop='+oIFrameElement.offsetTop); 993 //console.log('svnHistoryTooltipOnLoad: cx='+cx+'cxMax='+g_oCurrentTooltip.cxMax+' cxNeeded='+cxNeeded+' cy='+cy+' cyMax='+g_oCurrentTooltip.cyMax); 974 994 975 995 tooltipRepositionOnLoad(); … … 1040 1060 oTooltip.oElm.setAttribute('id', sKey); 1041 1061 oTooltip.oElm.className = 'tmvcstooltip'; 1062 //oTooltip.oElm.setAttribute('style', 'display:none; position: absolute;'); 1042 1063 oTooltip.oElm.style.display = 'none'; /* Note! Must stay hidden till loaded, or parent jumps with #rXXXX.*/ 1043 1064 oTooltip.oElm.style.position = 'absolute'; … … 1064 1085 1065 1086 oIFrameElement.onload = function() { /* A slight delay here to give time for #rXXXX scrolling before we show it. */ 1066 setTimeout(function(){tooltipReallyShow(oTooltip, oParent); svnHistoryTooltipOnLoad();}, 64); 1087 setTimeout(function(){tooltipReallyShow(oTooltip, oParent); svnHistoryTooltipOnLoad();}, 1088 isBrowserInternetExplorer() ? 256 : 64); 1067 1089 }; 1068 1090 … … 1085 1107 { 1086 1108 setTimeout(function() { /* Slight delay to make sure it scrolls before it's shown. */ 1087 tooltipReallyShow(oTooltip, oParent);1088 svnHistoryTooltipOnLoad();1089 },64);1109 tooltipReallyShow(oTooltip, oParent); 1110 svnHistoryTooltipOnLoad(); 1111 }, isBrowserInternetExplorer() ? 256 : 64); 1090 1112 } 1091 1113 else
Note:
See TracChangeset
for help on using the changeset viewer.