Actually, the values are correct, this isn't a bug.

mh and mw stand for maximum height and maximum width. ;) That isn't
apparent from the variable names, but you can tell when they are
assigned.

-Eric

On Nov 15, 9:11 pm, Enobrev <enob...@gmail.com> wrote:
> Found a bug in SimpleModal 1.33
>
> - If Content Height is Greater Than the Minimum Height, the Content
> Height should be Minimum Height.
> + If Content Height is Less Than the Minimum Height, the Content
> Height should be Minimum Height.
>
> @@ -463,7 +463,7 @@
>                                         }
>                                 }
>                                 else {
> -                                       ch = ch > mh ? mh : ch;
> +                                       ch = ch < mh ? mh : ch;
>                                 }
>
> - If Content Width is Greater Than the Minimum Width, the Content
> Width should be Minimum Width.
> + If Content Width is Less Than the Minimum Width, the Content Width
> should be Minimum Width.
>
> @@ -476,14 +476,13 @@
>                                         }
>                                 }
>                                 else {
> -                                       cw = cw > mw ? mw : cw;
> +                                       cw = cw < mw ? mw : cw;
>                                 }

Reply via email to