scaron/prettyphoto — pull request #110 by iVariable (2012-10-17 07:18:37+00:00)
Title: Rough fix for _fitToViewport recursion

In some cases (large picture title with show_title:true, small window size, long picture, etc) prettyPhoto falls into infinite recursion in _fitToViewport function.
This is a quickfix for such situations.

Of course it'll be much better to detect such cases and fix them somehow, (for example - change the show_title template to absolute positioning) but it's a matter of design/markup and I'm not skill-enough for this :)