In a table... I have action buttons that appear when the mouse goes over that row by using ng-cloak and ng-show.
The problem is, when the icon appears, it takes up more space than when its not there, and the html around it jumps.
I even set my css to use display:none for ng-click, which I thought is supposed to preserve the space the hidden element takes up (as opposed to visibility: hidden).
How can I fix this? OR can you think of a better way to do this?
<tr id=treeHistoryItem ng-repeat=o in tree.history
ng-mouseover=showEdit=true ng-mouseleave=showEdit=false>
....
<td align='right'>
<a ng:cloak ng-show=showEdit href
ng-click=removeTreeRec(o.$$hashKey)
class='fa fa-times _red _size6' ></a>
</td>
</tr>
Here's a plunkr example:
http://plnkr.co/edit/POA9b2pZA9QbBgcMsxBE?p=preview