From 70469eef704a7ad1fdd23fdc3ff37fa3db0e1343 Mon Sep 17 00:00:00 2001 From: Neylor Ohmaly Date: Thu, 6 Feb 2014 12:36:07 -0200 Subject: Added classes that allow the customization of the popover based on its position --- src/nsPopover.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/nsPopover.js b/src/nsPopover.js index 4cb0779..738ccbf 100644 --- a/src/nsPopover.js +++ b/src/nsPopover.js @@ -100,6 +100,12 @@ $popover.addClass(options.theme); } + // Add classes that identifies the pacement and alignment of the popver + // which allows the customization of the popover based on its position. + $popover + .addClass('ns-popover-' + placement_ + '-placement') + .addClass('ns-popover-' + align_ + '-align'); + $timeout(function() { $compile($popover)(scope); }); -- cgit v1.2.3