wehmoen / simplemodal

Automatically exported from code.google.com/p/simplemodal
0 stars 0 forks source link

resize reposition fails when iframe is disabled #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. set iframe: false
2. resize the screen

What is the expected output? What do you see instead?
box should be repositioned, will receive javascript warning noting that
self.dialog.iframe is undefined

What version of the product are you using? On what operating system?
xp - firefox 3

Please provide any additional information below.
added
line 293:
          if (self.dialog.iframe) {
            self.dialog.iframe.css({height: w[0], width: w[1]});
          }

Original issue reported on code.google.com by calderon...@gmail.com on 5 Dec 2008 at 7:34

GoogleCodeExporter commented 8 years ago
Thanks for catching this. I added a fix in 1.2.1, making sure that nothing was 
called
on dialog.iframe unless it exists:

For example:
self.dialog.iframe && self.dialog.iframe.css({height: w[0], width: w[1]});

Original comment by emartin24 on 5 Dec 2008 at 10:39