fix: [UI] prevent failing if generic_picker is not in a popover

pull/4024/head
mokaddem 2019-01-17 16:27:51 +01:00
parent 4859518ce3
commit e2faa2c53e
1 changed files with 4 additions and 2 deletions

View File

@ -118,8 +118,10 @@ function syncPopoverArrow($arrow, $wrapper, content) {
$wrapper.html(content);
$wrapper.show();
// redraw popover
$arrow.css('top', ar_pos.top + 'px');
$arrow.css('left', ar_pos.left + 'px');
if (ar_pos !== undefined) {
$arrow.css('top', ar_pos.top + 'px');
$arrow.css('left', ar_pos.left + 'px');
}
}
// can either call a function or fetch requested data