Changeset 9847 for trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/web/sm_WLink.xml.xsl
- Timestamp:
- 10/19/07 10:55:14 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/web/sm_WLink.xml.xsl
r9844 r9847 209 209 <xsl0:value-of select="si(sm:position/sm:free/@left, concat('left=', sm:position/sm:free/@left, ','), '')"/> 210 210 <xsl0:if test="boolean(sm:position/sm:centerScreen)"> 211 <xsl0:variable name="vWidth" select="si(boolean(sm:position/sm:centerScreen/@width), sm:position/sm:centerScreen/@width, $pWidthDefault)"/> 212 <xsl0:variable name="vHeight" select="si(boolean(sm:position/sm:centerScreen/@height), sm:position/sm:centerScreen/@height, $pHeightDefault)"/> 213 <xsl:variable name="vWidth"><xsl0:copy-of select="$vWidth"/></xsl:variable> 214 <xsl:variable name="vHeight"><xsl0:copy-of select="$vHeight"/></xsl:variable> 211 <xsl:variable name="vWidth"> 212 <xsl0:choose> 213 <xsl0:when test="sm:position/sm:centerScreen/@width"><xsl0:value-of select="sm:position/sm:centerScreen/@width"/></xsl0:when> 214 <xsl0:otherwise><xsl0:copy-of select="$pWidthDefault"/></xsl0:otherwise> 215 </xsl0:choose> 216 </xsl:variable> 217 <xsl:variable name="vHeight"> 218 <xsl0:choose> 219 <xsl0:when test="sm:position/sm:centerScreen/@height"><xsl0:value-of select="sm:position/sm:centerScreen/@height"/></xsl0:when> 220 <xsl0:otherwise><xsl0:copy-of select="$pHeightDefault"/></xsl0:otherwise> 221 </xsl0:choose> 222 </xsl:variable> 215 223 <xsl:value-of select="concat('width=', si($vWidth,$vWidth,'800'), ',height=', si($vHeight,$vHeight,'600'), ',left="', '+(screen.availWidth-', si($vWidth,$vWidth,'800'), ')/2+",top="', '+(screen.availHeight-', si($vHeight,$vHeight,'600'), ')/2+",')"/> 216 224 </xsl0:if>
Note: See TracChangeset
for help on using the changeset viewer.