Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/angular-ellipsis.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ angular.module('dibari.angular-ellipsis', [])
//Set data-overflow on element for targeting
element.attr('data-overflowed', 'true');

//for bootstrap using
scope.$parent.$overflowFull = binding;

// Set complete text and remove one word at a time, until there is no overflow
for (; i < bindArrayStartingLength; i++) {
var current = bindArray.pop();
Expand Down Expand Up @@ -168,7 +171,9 @@ angular.module('dibari.angular-ellipsis', [])
}
}
else{
// remove set data in case text is no longer overflowing
element.attr('data-overflowed', 'false');
scope.$parent.$overflowFull = '';
}
}
}
Expand Down