This little snippet I found on the Google fixes the teeny-tiny window
problem. Search for the word naturalWidth in your source -- mine is so
hacked up for my purposes that it doesn't have remotely matching line
numbers.
// We have to do this instead of .onload
this.checkImage[i] = new PeriodicalExecuter(function(i) {
if (!(typeof $('lightwindow_image_'+i).naturalWidth != "undefined" &&
$('lightwindow_image_'+i).naturalWidth == 0)) {
this.checkImage[i].stop();
var imageHeight = $('lightwindow_image_'+i).getHeight();
if (imageHeight > this.resizeTo.height) {
this.resizeTo.height = imageHeight;
}
this.resizeTo.width += $('lightwindow_image_'+i).getWidth();
this.imageCount--;
$('lightwindow_image_'+i).setStyle({
height: '100%'
});
if (this.imageCount == 0) {
this._processWindow();
}
}
}.bind(this, i), 1);
Walter
On Jun 4, 2009, at 7:54 AM, CMRstar430 wrote:
>
> Hey Walter,
>
> have you ever done patch work for lightwindow? or have you ever gotten
> it work for you in IE?
>
> On Jun 4, 7:48 am, Walter Lee Davis <[email protected]> wrote:
>> Lightwindow seems to have been abandoned quite some time ago, which
>> is
>> a shame. I've had to patch lots of things for IE6, there are scads of
>> references on Google to other bits that people have changed to work
>> around one problem or another. I really like LW, it does way more
>> than
>> any other lightbox script, particularly with rich media.
>>
>> Walter
>>
>> On Jun 4, 2009, at 7:33 AM, CMRstar430 wrote:
>>
>>
>>
>>> Hey David,
>>
>>> I believe I am using the newest version of lightwindow. The
>>> prototype
>>> that came with it was version 1.5. Thats why I thought maybe it
>>> needed
>>> the updated version, but the same issue is happening with both 1.5
>>> and
>>> the new 1.6.1_rc2. It works perfect in Firefox and Chrome, only
>>> errors
>>> in IE. The page that i have the code in is .asp, do you think that
>>> would cause any issues? I wouldnt think so but I am not sure. Thank
>>> you for looking into this for me. I appreciate it.
>>
>>> --Cmrstar430
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---