--- a/src/cm/media/js/client/c_toc.js Fri May 11 13:10:19 2012 +0200
+++ b/src/cm/media/js/client/c_toc.js Fri May 11 13:25:05 2012 +0200
@@ -2,7 +2,6 @@
instanciateToc = function() {
gToc = {
- 'position':[CY.WidgetPositionExt.TL, CY.WidgetPositionExt.TL],
'tocId':CY.guid(),
'tocTitleId':CY.guid(),
'closeBtnId':CY.guid(),
@@ -40,7 +39,7 @@
visible :false,
headerContent :overlayHtml['headerContent'],
bodyContent :overlayHtml['bodyContent'],
- xy :[10,10],
+ xy :[3,30],
width : width
});
overlay.get('contentBox').addClass("c-toc") ;
@@ -98,7 +97,6 @@
showToc= function () {
removeFormErrMsg(gToc['tocId']) ;
gIComments.hide() ;
- positionToc() ;
gToc['overlay'].show();
}
@@ -108,25 +106,6 @@
return false ;
}
-positionToc = function () {
- if (gToc != null) {
- var overlay = gToc['overlay'] ;
- var boundingBox = overlay.get('boundingBox') ;
-
- var commentFormHeight = boundingBox.get('offsetHeight') ;
- var windowHeight = boundingBox.get('winHeight') ;
-
- var pos = gToc['position'] ;
- if (commentFormHeight > windowHeight) // trying to have save comment visible ... :
- pos = [CY.WidgetPositionExt.BL, CY.WidgetPositionExt.BL] ;
-
- overlay.set("align", {points:pos});
- if (commentFormHeight <= windowHeight)
- overlay.set("y", overlay.get("y") + 30);
- boundingBox.setX(boundingBox.getX() + gConf['iCommentLeftPadding']);
- }
-}
-
function getElementsByTagNames(list,obj) {
if (!obj) var obj = document;
var tagNames = list.split(',');