Skip to content

Commit

Permalink
fix(main.js): we now hide the popover at the end of the image resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelParke committed Sep 23, 2015
1 parent 6fd8a01 commit c182c96
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,14 @@ textAngular.directive("textAngular", [
event.preventDefault();
event.stopPropagation();
_body.off('mousemove', mousemove);
scope.showPopover(_el);
// at this point, we need to force the model to update! since the css has changed!
// this fixes bug: #862
scope.updateTaBindtaTextElement();
// this fixes bug: #862 - we now hide the popover -- as this seems more consitent.
// there are still issues under firefox, the window does not repaint. -- not sure
// how best to resolve this, but clicking anywhere works.
scope.$apply(function (){
scope.hidePopover();
scope.updateTaBindtaTextElement();
}, 100);
});
event.stopPropagation();
event.preventDefault();
Expand Down

0 comments on commit c182c96

Please sign in to comment.