Index: trunk/extensions/SemanticForms/skins/SF_popupform.css |
— | — | @@ -42,7 +42,6 @@ |
43 | 43 | height: 100%; |
44 | 44 | border: none; |
45 | 45 | background: transparent; |
46 | | - overflow: hidden; |
47 | 46 | } |
48 | 47 | |
49 | 48 | iframe.popupform-innerdocument { |
— | — | @@ -50,7 +49,6 @@ |
51 | 50 | height: 100%; |
52 | 51 | border: none; |
53 | 52 | background: transparent; |
54 | | - position: relative; |
55 | 53 | overflow: hidden; |
56 | 54 | } |
57 | 55 | |
Index: trunk/extensions/SemanticForms/libs/SF_popupform.js |
— | — | @@ -209,15 +209,18 @@ |
210 | 210 | |
211 | 211 | // GuMaxDD has #content but keeps headlines in #gumax-content-body |
212 | 212 | content = iframecontents.find("#gumax-content-body"); |
213 | | - |
| 213 | + |
214 | 214 | // normal skins use #content (e.g. Vector, Monobook) |
215 | 215 | if ( content.length == 0 ) content = iframecontents.find("#content"); |
216 | 216 | |
217 | 217 | // some skins use #mw_content (e.g. Modern) |
218 | 218 | if ( content.length == 0 ) content = iframecontents.find("#mw_content"); |
219 | 219 | |
| 220 | + var iframebody = content.closest("body"); |
| 221 | + var iframedoc = iframebody.parent(); |
| 222 | + |
220 | 223 | // this is not a normal MW page (or it uses an unknown skin) |
221 | | - if ( content.length == 0 ) content = iframecontents.find("body"); |
| 224 | + if ( content.length == 0 ) content = iframebody; |
222 | 225 | |
223 | 226 | // the huge left margin looks ugly in Vector, reduce it |
224 | 227 | // (How does this look for other skins?) |
— | — | @@ -229,21 +232,31 @@ |
230 | 233 | height: "auto", |
231 | 234 | minWidth: "0px", |
232 | 235 | minHeight:"0px", |
233 | | - overflow: "visible", |
234 | | - position: "relative", |
235 | | - top: "0", |
236 | | - left: "0", |
| 236 | +// overflow: "visible", |
| 237 | +// position: "relative", |
| 238 | +// top: "0", |
| 239 | +// left: "0", |
237 | 240 | border: "none" |
238 | 241 | } ) |
239 | | - .parents('body').css( { |
| 242 | + .parentsUntil('html') |
| 243 | + .css( { |
240 | 244 | margin: 0, |
241 | 245 | padding: 0, |
| 246 | + width: "auto", |
| 247 | + height: "auto", |
242 | 248 | minWidth: "0px", |
243 | | - minHeight:"0px", |
| 249 | + minHeight: "0px", |
| 250 | + "float": "none", // Cavendish skin uses floating -> unfloat content |
| 251 | +// position: "relative", |
| 252 | +// top: "0", |
| 253 | +// left: "0", |
244 | 254 | background: "transparent" |
245 | 255 | }) |
246 | 256 | .andSelf().siblings(); |
247 | 257 | |
| 258 | + iframedoc.height('100%').width('100%'); |
| 259 | + iframebody.height('100%').width('100%'); |
| 260 | + |
248 | 261 | if ( jQuery.browser.msie && jQuery.browser.version < "8" ) { |
249 | 262 | siblings.hide(); |
250 | 263 | } else { |