Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(popover): prevent wrong positioning from title
Browse files Browse the repository at this point in the history
If the title is blank, ngAnimate attempts to animate ngShow so positionTooltip
gets called when the title box is still visible, about to be animated to
hidden. Hence, the positionTooltip receives a taller height. Avoid this by
using ngIf instead.

Closes #3518
  • Loading branch information
chrisirhc authored and wesleycho committed Apr 10, 2015
1 parent 22a2144 commit c8156c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/popover/popover-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="arrow"></div>

<div class="popover-inner">
<h3 class="popover-title" ng-bind="title" ng-show="title"></h3>
<h3 class="popover-title" ng-bind="title" ng-if="title"></h3>
<div class="popover-content"
tooltip-template-transclude="content"
tooltip-template-transclude-scope="originScope()"></div>
Expand Down
2 changes: 1 addition & 1 deletion template/popover/popover.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="arrow"></div>

<div class="popover-inner">
<h3 class="popover-title" ng-bind="title" ng-show="title"></h3>
<h3 class="popover-title" ng-bind="title" ng-if="title"></h3>
<div class="popover-content" ng-bind="content"></div>
</div>
</div>

0 comments on commit c8156c7

Please sign in to comment.