-
AuthorPosts
-
1remos Friend
1remos
- Join date:
- January 2012
- Posts:
- 60
- Downloads:
- 1
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
October 27, 2012 at 1:30 pm #181751The question in JA Wall Template!
How do i modify popupIFrame width which by defaulrt is “638”
See attached picture
I m using K2
By modifing “popup-view” by appling CSS (default widh is 640px) in template.css (line 1084)
that changes only the content area and not the width of the content inside!Thank u in advance!
arucardx Friendarucardx
- Join date:
- July 2010
- Posts:
- 346
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 21
- Thanked:
- 138 times in 104 posts
October 28, 2012 at 2:35 am #471290Open Wall.js and find this block of code
$('<div id="popup-inner" />')
.html ($('<iframe id="popupIFrame" src="' + url + '" width="638" scrolling="no" frameborder="0" />')
.bind('load', ifmOnload))
.appendTo ('#popup-content');Just change the width there to whatever you want. Note that the 2 missing px is actually border for the pop up.
Also remember to change this width check for pop up after changing the width. Look for this block of code, should be a little higher up. Here you want to change that 700 to whatever new width you have set. I’m not sure why comment says 600px, and the iframe width is 638px while the width check is 700px. My guess is.. buffer?
// check if window is smaller than popup width - 600px
if ($(document.body).width() < 700){
return true;
}1 user says Thank You to arucardx for this useful post
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 2 replies, has 2 voices, and was last updated by arucardx 12 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Modify popup Iframe width
Viewing 2 posts - 1 through 2 (of 2 total)