Detect if points/role selector its at the bottom of the page

stable
Xavier Julián 2015-06-23 09:55:44 +02:00
parent dce4294744
commit 68c946c4cc
2 changed files with 7 additions and 0 deletions

View File

@ -226,6 +226,10 @@ EstimationsService = ($template, $qqueue, $repo, $confirm, $q) ->
@$el.find(".pop-points-open").show()
pop = @$el.find(".pop-points-open")
if pop.offset().top + pop.height() > document.body.clientHeight
pop.addClass('pop-bottom')
create = ($el, us, project) ->
$el.unbind("click")

View File

@ -78,6 +78,9 @@
}
.pop-points-open {
@include popover(200px, 0, 30px, '', '');
&.pop-bottom {
@include popover(200px, 'auto', 30px, 0, '');
}
li {
display: inline-block;
width: 23%;