Set lightbox height:100% only if adaptHeight is set

In getMaxContentSize lightbox sets overflow:hidden before calculating
and therefore it calculated a wrong height because of height:100%. The site
also lost its scroll-position.