- Timestamp:
- 06/06/08 12:32:31 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Cms/chrome/content/scenaricms/widgets/block/block.xbl.xml
r11130 r11156 740 740 </property> 741 741 <field name="fNbError"/> 742 <filed name="fIsInitialised">false</filed> 742 743 <field name="fZoomFactor">2</field> 743 744 <field name="fViewer"><![CDATA[document.getAnonymousElementByAttribute(this,"anonid", (this.hasAttribute('viewer') && this.getAttribute('viewer')=='html') ? "scSizeViewer_frm" : "scSizeViewer_img")]]></field> … … 766 767 </property> 767 768 <property name="fStandardCharSize_value"><!-- valeur à enregistrer --> 768 <getter><![CDATA[ 769 <getter><![CDATA[ 769 770 if(this.fIsInitialised) return (1000 / this.fStandardCharSize_control.value); 770 771 else if(this.propsDom && this.propsDom.hasAttribute("standardCharSize")){ … … 882 883 vScSize.fIsInitialised = true; 883 884 } 884 window.setTimeout(doInitialised, 0);//asynchrone885 window.setTimeout(doInitialised, 100);//asynchrone 885 886 } 886 887 } catch(e) {ut.debug("Ehec à l'ouverture du block scSize '"+this.getAttribute("codeblock")+"' : "+e);} … … 933 934 if(vScSize.fLimitCharSize_dom) vDoc.setAttribute("limitCharSize", vScSize.fLimitCharSize_value * vScSize.fStandardCharSize_value / 100); 934 935 if(vScSize.fRotation_dom) vDoc.setAttribute("rotateForbidden", vScSize.fRotation_value); 935 // ut.debug("SAVE!!!!! :: "+ut.getXml(vDoc));936 //ut.debug("SAVE!!!!! :: "+ut.getXml(vDoc)); 936 937 vScSize.fSavePending = true; 937 938 try { … … 968 969 function setImgDim(pWidth, pHeight){ 969 970 vScSize.fViewer.setAttribute("style", "min-width:"+pWidth+"px;max-width:"+pWidth+"px;min-height:"+pHeight+"px;max-height:"+pHeight+"px;"); 970 if ( "resize" in vScSize.fViewer.contentWindow) vScSize.fViewer.contentWindow.resize();971 if (vScSize.fViewer.contentWindow && ("resize" in vScSize.fViewer.contentWindow)) vScSize.fViewer.contentWindow.resize(); 971 972 } 972 973 function setBoxDim(pWidth, pHeight){ … … 998 999 this.fTextbox.setAttribute("value", this.fLimitCharSize_txt ? this.fLimitCharSize_txt : vDefaultTxtBox); 999 1000 // Zone d'image 1000 this.fSizeBox.collapsed = true;// FIXME : mis en commentaire car bug dans FF2 avec les iframes dans une stack1001 if(this.hasAttribute('viewer') && this.getAttribute('viewer')=='html') this.fSizeBox.collapsed = true;// FIXME : mis en commentaire car bug dans FF2 avec les iframes dans une stack 1001 1002 setBoxDim(resolveScSize(this.fViewerIniWidth), resolveScSize(this.fViewerIniHeight)); 1002 1003 setImgDim(resolveScSize(this.fViewerIniWidth) * this.fLimitCharSize_control.value / 100, resolveScSize(this.fViewerIniHeight) * this.fLimitCharSize_control.value / 100);
Note: See TracChangeset
for help on using the changeset viewer.