Lightbox doesn’t resize background correctly

Customer care manager

Juraj Ondrus asked on June 3, 2010 01:39

Lightbox doesn’t resize background correctly

Correct Answer

Juraj Ondrus answered on June 3, 2010 01:39

There are two possible reasons of this issue. First one is browser based and it is described in this FAQ.

Second one could be caused by the fact, that the ‘Selected item transformation’ property of the Lightbox webpart is not set. In this case, there needs to be the image tag rendered when seeing selected items. For instance you can use our predefined ‘CMS.File.LightboxSelected’ transformation which contains code as follows:

<img src="<%# GetFileUrl(&quot;FileAttachment&quot;) %&gt;&quot; title=&quot;&lt;%# Eval(&quot;FileName&quot;) %&gt;&quot; alt=&quot;&quot; /&gt;

This transformation is intended for CMS.File document type based documents, so if you store files any other way, you will need to adjust it as per your needs.

Links to other resources:

Writing transformations
Lightbox properties

-ov-
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.