Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/definitions/modules/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,12 @@ $.fn.popup = function(parameters) {
if(searchDepth == settings.maxSearchDepth && typeof settings.lastResort === 'string') {
position = settings.lastResort;
}

if(position === 'top right' || position === 'bottom right') {
var possibleMargin = calculations.boundary.right - calculations.parent.width;
if(possibleMargin > 0) {
offset -= possibleMargin;
}
}
switch (position) {
case 'top left':
positioning = {
Expand Down