瀏覽代碼

Update src/ui/mentionsview.js

Co-Authored-By: jodator <jodator@gmail.com>
Aleksander Nowodzinski 6 年之前
父節點
當前提交
d2f1ebeed6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-mention/src/ui/mentionsview.js

+ 1 - 1
packages/ckeditor5-mention/src/ui/mentionsview.js

@@ -120,7 +120,7 @@ export default class MentionsView extends View {
 	// Checks if an item is visible in the scrollable area.
 	//
 	// The item is considered visible when:
-	// - its top line is inside scrolled rect
+	// - its top boundary is inside the scrollable rect
 	// - its bottom line is inside scrolled rect (whole item must be visible)
 	_isItemVisibleInScrolledArea( item ) {
 		const isBottomLineVisible = item.element.offsetTop + item.element.clientHeight <= this.element.clientHeight;