forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/resources/skins/krysalis-site/xslt/html site2xhtml.xsl
Date Thu, 12 Jun 2003 13:25:00 GMT
nicolaken    2003/06/12 06:25:00

  Modified:    src/resources/skins/krysalis-site/scripts fontsize.js
               src/resources/skins/krysalis-site/xslt/html site2xhtml.xsl
  Log:
        <action dev="NKB" type="fix" context="skins">
          Fixed bug that showed the krysalis-site skin in IE browsers from
          a remote site to start with a font size of 100.
          Also made the font size script kick in at the start of the
          page rendering, as before it resized only after all the page
          was loaded, which was not nice to say the least.
        </action>
  
  Revision  Changes    Path
  1.2       +13 -3     xml-forrest/src/resources/skins/krysalis-site/scripts/fontsize.js
  
  Index: fontsize.js
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/scripts/fontsize.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- fontsize.js	24 Mar 2003 17:58:56 -0000	1.1
  +++ fontsize.js	12 Jun 2003 13:24:59 -0000	1.2
  @@ -1,6 +1,6 @@
   function init() 
  -{ 
  -  ndeSetTextSize();
  +{ //embedded in the doc
  +  //ndeSetTextSize();
   }
   
   function checkBrowser(){
  @@ -93,9 +93,19 @@
     }
     else if (body.currentStyle)
     {
  -    size = body.currentStyle.fontSize;
  +   size = body.currentStyle.fontSize;
     }
  +
  +  //fix IE bug
  +  if( isNaN(size)){
  +    if(size.substring(size.length-1)=="%"){
  +      return
  +    }
  +
  +  }
  +
     return size;
  +
   }
   
   
  
  
  
  1.16      +2 -2      xml-forrest/src/resources/skins/krysalis-site/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/xslt/html/site2xhtml.xsl,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- site2xhtml.xsl	22 May 2003 02:33:33 -0000	1.15
  +++ site2xhtml.xsl	12 Jun 2003 13:25:00 -0000	1.16
  @@ -37,7 +37,7 @@
           <script type="text/javascript" language="javascript" src="{$root}skin/fontsize.js"></script>
         </head>
         <body bgcolor="#FFFFFF" text="#000000" onload="init()">
  -
  +        <script type="text/javascript">ndeSetTextSize();</script>
           <!-- ================================= top bar with logo's and search box ===================================
 -->
   
           <xsl:comment>================= start Banner ==================</xsl:comment>
  
  
  

Mime
View raw message