Panels now resize properly. CSS abandonned me, but jQuery was there to save me.