Detect if points/role selector its at the bottom of the page
parent
dce4294744
commit
68c946c4cc
|
@ -226,6 +226,10 @@ EstimationsService = ($template, $qqueue, $repo, $confirm, $q) ->
|
||||||
|
|
||||||
@$el.find(".pop-points-open").show()
|
@$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) ->
|
create = ($el, us, project) ->
|
||||||
$el.unbind("click")
|
$el.unbind("click")
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,9 @@
|
||||||
}
|
}
|
||||||
.pop-points-open {
|
.pop-points-open {
|
||||||
@include popover(200px, 0, 30px, '', '');
|
@include popover(200px, 0, 30px, '', '');
|
||||||
|
&.pop-bottom {
|
||||||
|
@include popover(200px, 'auto', 30px, 0, '');
|
||||||
|
}
|
||||||
li {
|
li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 23%;
|
width: 23%;
|
||||||
|
|
Loading…
Reference in New Issue