Calc Comments: Improvements.

Scroll to comment's position.
Solve "content not shown" bug.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Id62d7407bc66c5fd17590c37f3fdd01246cbe245
This commit is contained in:
Gökay Şatır 2021-06-02 13:30:11 +03:00 committed by Gökay ŞATIR
parent c7a1adfd44
commit 353f866f08

View file

@ -420,6 +420,10 @@ class Comment {
else if (this.sectionProperties.docLayer._docType === 'spreadsheet') {
this.backgroundColor = '#777777'; //background: rgba(119, 119, 119, 0.25);
this.backgroundOpacity = 0.25;
var x: number = Math.round(this.position[0] / this.dpiScale);
var y: number = Math.round(this.position[1] / this.dpiScale);
this.containerObject.getSectionWithName(L.CSections.Scroll.name).onScrollTo({x: x, y: y});
}
this.containerObject.requestReDraw();
@ -575,7 +579,7 @@ class Comment {
}
this.sectionProperties.container.style.visibility = 'hidden';
this.sectionProperties.contentNode.style.display = 'none';
//this.sectionProperties.contentNode.style.display = 'none';
this.sectionProperties.nodeModify.style.display = 'none';
this.sectionProperties.nodeReply.style.display = 'none';