Bugfix maxHeight after $.colorbox.resize()

Earlier, if I set .colorbox{maxHeight:'95%'...} then colorbox frame gets vertical scrollbar (if content is heighter than frame) but if then I do $.colorbox.resize() my colorbox frame becomes heighter than wrapper page and my maxHeight option is ignored, so this is bugfix for it.
It resizes it to overflow page if contents is too large even if I set
maxHeight: 95%.
13.08.2014 12:35 пользователь "Alexander Obuhovich" <
notifications@github.com> написал:

> In jquery.colorbox.js:
>
> > @@ -733,6 +733,7 @@
> >  				scrolltop = $loaded.scrollTop();
> >  				$loaded.css({height: "auto"});
> >  				settings.h = $loaded.height();
> > +				if (settings.h > settings.mh) settings.h=settings.mh;
>
> One, that you indicated as fixed do nothing. I click resize and nothing
> happens. The original script resized colorbox beyond possible screen space.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jackmoore/colorbox/pull/635/files#r16165855>.
>