8
0
Prechádzať zdrojové kódy

Update src/ui/mentionsview.js

Co-Authored-By: jodator <jodator@gmail.com>
Aleksander Nowodzinski 6 rokov pred
rodič
commit
753ac371a7

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

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