Place the linksharing popover from the right, not the left.

This ensures the popover reflows properly with window resize.
This commit is contained in:
Shane Kilkelly 2017-11-10 12:05:12 +00:00
parent faf6178fa8
commit 42c0974671
2 changed files with 6 additions and 3 deletions

View file

@ -15,7 +15,7 @@ define [
offset = shareBtn.offset()
popover.show()
$scope.placement = 'bottom'
popover.offset({
top: offset.top + 11 + shareBtn.height(),
left: offset.left - 180
popover.css({
top: '' + (2) + 'px',
right: '' + (window.innerWidth - offset.left - (shareBtn.width() * 1.5) ) + 'px'
})

View file

@ -147,6 +147,9 @@ a.feat-onboard-dismiss {
.onboarding-linksharing {
display: block;
top: 10px;
&.popover {
left: auto !important;
}
img {
margin-bottom: 10px;