Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 3450a77

Browse files
committed
improve poplockit handling of small columns
1 parent 61b9590 commit 3450a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/poplockit.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
return @setPosition('absolute', 'south')
112112
return @setPosition('fixed', 'south') if @height > viewportHeight and @height < @parentHeight and (scrollTop + viewportHeight) >= (@top + @height) and (scrollTop + viewportHeight) < (@parentHeight + @top)
113113

114-
return @setPosition('absolute', 'south') if scrollTop >= @bottom
114+
return @setPosition('absolute', 'south') if (scrollTop + viewportHeight) >= @bottom && @height >= viewportHeight
115115
@setPosition('absolute', 'north')
116116

117117
# return to default state on destroy

0 commit comments

Comments
 (0)