equal
deleted
inserted
replaced
1 gICommentForm = null ; |
1 gICommentForm = null ; |
2 |
2 |
3 instanciateICommentForm = function() { |
3 instanciateICommentForm = function() { |
4 gICommentForm = { |
4 gICommentForm = { |
5 'position':[CY.WidgetPositionExt.LC, CY.WidgetPositionExt.LC], |
5 'position':[CY.WidgetPositionExt.TL, CY.WidgetPositionExt.TL], |
6 'formId':CY.guid(), |
6 'formId':CY.guid(), |
7 'formTitleId':CY.guid(), |
7 'formTitleId':CY.guid(), |
8 'titleInputId':CY.guid(), |
8 'titleInputId':CY.guid(), |
9 'contentInputId':CY.guid(), |
9 'contentInputId':CY.guid(), |
10 'tagsInputId':CY.guid(), |
10 'tagsInputId':CY.guid(), |
193 var pos = gICommentForm['position'] ; |
193 var pos = gICommentForm['position'] ; |
194 if (commentFormHeight > windowHeight) // trying to have save comment visible ... : |
194 if (commentFormHeight > windowHeight) // trying to have save comment visible ... : |
195 pos = [CY.WidgetPositionExt.BL, CY.WidgetPositionExt.BL] ; |
195 pos = [CY.WidgetPositionExt.BL, CY.WidgetPositionExt.BL] ; |
196 |
196 |
197 overlay.set("align", {points:pos}); |
197 overlay.set("align", {points:pos}); |
|
198 if (commentFormHeight <= windowHeight) |
|
199 overlay.set("y", overlay.get("y") + 30); |
198 boundingBox.setX(boundingBox.getX() + gConf['iCommentLeftPadding']); |
200 boundingBox.setX(boundingBox.getX() + gConf['iCommentLeftPadding']); |
199 } |
201 } |
200 } |
202 } |