From d492fa6f7d8e69fee53b4ecbca208ea3ccd76760 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Tue, 12 Feb 2013 21:58:01 +0100 Subject: [PATCH] fix(tooltip): fix placement issues Closes #115 --- src/popover/popover.js | 10 +++++----- src/tooltip/tooltip.js | 10 ++++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/popover/popover.js b/src/popover/popover.js index f6d027511f..d64e729eff 100644 --- a/src/popover/popover.js +++ b/src/popover/popover.js @@ -12,7 +12,7 @@ angular.module( 'ui.bootstrap.popover', [] ) templateUrl: 'template/popover/popover.html' }; }) -.directive( 'popover', [ '$compile', '$timeout', '$parse', function ( $compile, $timeout, $parse ) { +.directive( 'popover', [ '$compile', '$timeout', '$parse', '$window', function ( $compile, $timeout, $parse, $window ) { var template = '