Umbraco Mediapicker Firefox Bugfix
Published on 03. oktober 2007 inThis is mostly a little reminder post for myself on how to solve this issue.
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.
What i did was cange a line in the umbraco/js/submodal/submodal.js file
Original code from line 119:
// 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";
Canged to
// 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 > 0){
gPopFrame.style.width = bockWidth + "px";
} else {
gPopFrame.style.width = "334px";
}
gPopFrame.style.height = (height) + "px";
The problem is also posted on codeplex

On 26. januar 2008 by Jonas Bohlin
Just a quick note - this bug this post is about is fixed since nov 10 07. It will be part of the 3.0.4 (or possibly 3.1, whichever comes first) release!