Ignore:
Timestamp:
06/06/08 12:32:31 (4 years ago)
Author:
anp
Message:

debug scSize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Cms/chrome/content/scenaricms/widgets/block/block.xbl.xml

    r11130 r11156  
    740740                        </property> 
    741741                        <field name="fNbError"/> 
     742                        <filed name="fIsInitialised">false</filed> 
    742743                        <field name="fZoomFactor">2</field> 
    743744                        <field name="fViewer"><![CDATA[document.getAnonymousElementByAttribute(this,"anonid", (this.hasAttribute('viewer') && this.getAttribute('viewer')=='html') ? "scSizeViewer_frm" : "scSizeViewer_img")]]></field> 
     
    766767                        </property> 
    767768                        <property name="fStandardCharSize_value"><!-- valeur à enregistrer --> 
    768                                 <getter><![CDATA[ 
     769                                <getter><![CDATA[        
    769770                                        if(this.fIsInitialised) return (1000 / this.fStandardCharSize_control.value); 
    770771                                        else if(this.propsDom && this.propsDom.hasAttribute("standardCharSize")){ 
     
    882883                                                                vScSize.fIsInitialised = true; 
    883884                                                        } 
    884                                                         window.setTimeout(doInitialised, 0);//asynchrone 
     885                                                        window.setTimeout(doInitialised, 100);//asynchrone 
    885886                                                } 
    886887                                        } catch(e) {ut.debug("Ehec à l'ouverture du block scSize '"+this.getAttribute("codeblock")+"' : "+e);} 
     
    933934                                                        if(vScSize.fLimitCharSize_dom) vDoc.setAttribute("limitCharSize", vScSize.fLimitCharSize_value * vScSize.fStandardCharSize_value / 100); 
    934935                                                        if(vScSize.fRotation_dom) vDoc.setAttribute("rotateForbidden", vScSize.fRotation_value); 
    935                                                         // ut.debug("SAVE!!!!! :: "+ut.getXml(vDoc)); 
     936                                                        //ut.debug("SAVE!!!!! :: "+ut.getXml(vDoc)); 
    936937                                                        vScSize.fSavePending = true; 
    937938                                                        try { 
     
    968969                                                function setImgDim(pWidth, pHeight){ 
    969970                                                        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(); 
    971972                                                } 
    972973                                                function setBoxDim(pWidth, pHeight){ 
     
    998999                                                        this.fTextbox.setAttribute("value", this.fLimitCharSize_txt ? this.fLimitCharSize_txt : vDefaultTxtBox); 
    9991000                                                        // Zone d'image 
    1000                                                         this.fSizeBox.collapsed = true;// FIXME : mis en commentaire car bug dans FF2 avec les iframes dans une stack 
     1001                                                        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 
    10011002                                                        setBoxDim(resolveScSize(this.fViewerIniWidth), resolveScSize(this.fViewerIniHeight)); 
    10021003                                                        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.