jackmoore/colorbox — Issue #120: Size sometimes doesn’t account for padding
Author: Sidnicious
Created: 2011-10-10 21:56:56+00:00
State: open

I’ve run into an annoying intermittent issue and haven’t been able to pin it down yet. Sometimes, a ColorBox opens at the wrong size:

![](http://i.imgur.com/Y6FwC.png)

When this happens, it persists for every ColorBox on the page, until I reload:

![](http://i.imgur.com/lxoZ5.png)

(There are several differences visible in the inspector between “working” and “not working”). Interestingly enough, this happens with plain image links as well as HTML links, and calling `$.colorbox.resize()` after the ColorBox has loaded *doesn’t help*

It appears to happen at random, on about 35% of page loads. The content isn't dynamic and nothing is changing. I’m using v1.3.17.2 with Chrome 14.

I haven’t tried to reduce this to a test case yet, because I’m curious if anyone else has seen it.