aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsPopover.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/nsPopover.js')
-rw-r--r--src/nsPopover.js6
1 files changed, 6 insertions, 0 deletions
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);
});