Skip to content

ngShow / ngHide Classes Get Applied In The $$postDigest Phase Caused confirm box height error #14

Open
@Woodu

Description

@Woodu

Hi,
I'm using angular 1.5.9 and angular-confirm 1.1.0.

Due to this article:
https://www.bennadel.com/blog/2853-ngshow-nghide-classes-get-applied-in-the-postdigest-phase-in-angularjs-1-3.htm
If I use dom controller with ng-hide or ng-show in confirm box template, the digest will first update confirm box height, then the dom get updated.
so I changed some code on line 913~917 :

var thisBox = this;
          $timeout(function asyncTestCheck(){
            console.log($content.outerHeight());
            thisBox.$contentPane.css({
              'height': $content.outerHeight(),
            }).scrollTop(0);
            thisBox.$confirmBox.css(style);
          },0,false);

As a walkaround, I doesnt changed the calculate of contentHeight. Maybe could get fixed in next version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions