summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/directives/utils/smart-tooltip
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/directives/utils/smart-tooltip')
-rw-r--r--catalog-ui/src/app/directives/utils/smart-tooltip/smart-tooltip.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-ui/src/app/directives/utils/smart-tooltip/smart-tooltip.ts b/catalog-ui/src/app/directives/utils/smart-tooltip/smart-tooltip.ts
index 098134aaae..0c84af939b 100644
--- a/catalog-ui/src/app/directives/utils/smart-tooltip/smart-tooltip.ts
+++ b/catalog-ui/src/app/directives/utils/smart-tooltip/smart-tooltip.ts
@@ -43,7 +43,7 @@ export class SmartTooltipDirective implements ng.IDirective {
}
$elem.bind('mouseenter', () => {
- if ($elem[0].offsetWidth < $elem[0].scrollWidth && !$elem.attr('tooltips')) {
+ if ((<HTMLElement>$elem[0]).offsetWidth < $elem[0].scrollWidth && !$elem.attr('tooltips')) {
$attrs.$set('tooltips', 'tooltips');
if ($attrs['sdcSmartTooltip'] && $attrs['sdcSmartTooltip'].length > 0) {
$elem.attr('tooltip-content', $attrs['sdcSmartTooltip']);