<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Morten Bock</title><link>http://www.mortenbock.dk/</link><description>A feed of new content on my website</description><item><author>Morten Bock</author><category>bugfix</category><category>english</category><category>firefox</category><category>umbraco</category><description>&lt;p&gt;This is mostly a little reminder post for myself on how to solve this issue.&lt;/p&gt;&lt;p&gt;The problem is when using more than one mediapicker/contentpicker on a document type, then the iframe with the treepicker will be 0px wide, rendering the box useless.&lt;/p&gt;&lt;p&gt;&lt;!--more--&gt;What i did was cange a line in the umbraco/js/submodal/submodal.js file&lt;/p&gt;&lt;p&gt;Original code from line 119:&lt;/p&gt;&lt;p&gt;&lt;pre&gt;
// need to set the width of the iframe to the title bar width because of the dropshadow
// some oddness was occuring and causing the frame to poke outside the border in IE6
gPopFrame.style.width = parseInt(document.getElementById("popupTitleBar").offsetWidth, 10) + "px";
gPopFrame.style.height = (height) + "px";
&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;Canged to&lt;/p&gt;&lt;p&gt;&lt;pre&gt;
// need to set the width of the iframe to the title bar width because of the dropshadow
// some oddness was occuring and causing the frame to poke outside the border in IE6
//Bugfix for making the iframe visible in FireFox since width is 0px
bockWidth = parseInt(document.getElementById("popupTitleBar").offsetWidth, 10);
if(bockWidth &amp;gt; 0){
gPopFrame.style.width = bockWidth + "px";
} else {
gPopFrame.style.width = "334px";
}
gPopFrame.style.height = (height) + "px";
&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;The problem is also &lt;a href="http://www.codeplex.com/umbraco/WorkItem/View.aspx?WorkItemId=11530"&gt;posted on codeplex&lt;/a&gt;&lt;/p&gt;</description><guid isPermaLink="false">1294</guid><link>http://www.mortenbock.dk/blog/2007/10/03/umbraco-mediapicker-firefox-bugfix.aspx</link><pubDate>Wed, 03 Oct 2007 11:16:05 +0100</pubDate><title>Umbraco Mediapicker Firefox Bugfix</title></item></channel></rss>
