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.
Will you merge this?
I don't have merge rights on this repo.
How to implement correct resize after window resize in case of maxHeight is configured?
No idea.
+1 I've encountered this problem before. Thanks @lufton.
+1 This fix worked for me, thank you.
Just tested this, works fine. Thanks @lufton.
Needs merging, current code ignores maxHeight when resizing.
Tested in a site that makes heavy use of colorbox (multiple "nested" colorboxes by changing its content, image galleries, product quick views, etc...)
I'm not sure it should default to 100% max height though, because it could possibly affect current implementations. In my opinion it should maintain current behaviour when no maxHeight is set.