Browse Source

Update comment.go

make the comment box's height auto and having the minimum height.
xuri 7 năm trước cách đây
mục cha
commit
74c6091cfc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      comment.go

+ 1 - 1
comment.go

@@ -125,7 +125,7 @@ func (f *File) addDrawingVML(commentID int, drawingVML, cell string, lineCount,
 			ObjectType: "Note",
 			Anchor: fmt.Sprintf(
 				"%d, 23, %d, 0, %d, %d, %d, 5",
-				1+yAxis, 1+xAxis, 1+yAxis+lineCount, (colCount*991)/175+5, 2+xAxis),
+				1+yAxis, 1+xAxis, 2+yAxis+lineCount, colCount+yAxis, 2+xAxis+lineCount),
 			AutoFill: "True",
 			Row:      xAxis,
 			Column:   yAxis,