pandorafms/pandora_console/include/styles/cb/lib/xgetcomputedstyle.xml

73 lines
2.0 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<xlib_symbol id='xGetComputedStyle'>
<copyright>Copyright 2002-2005 Michael Foster (Cross-Browser.com)</copyright>
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
<groups>
<grp>Style</grp>
</groups>
<type>Function</type>
<description><![CDATA[A safe wrapper for getComputedStyle and currentStyle.]]></description>
<syntax>xGetComputedStyle(oEle, sProp[, bInt])</syntax>
<parameters>
<par>
<name>oEle</name>
<note><![CDATA[element object]]></note>
</par>
<par>
<name>sProp</name>
<note><![CDATA[css property name]]></note>
</par>
<par>
<name>bInt</name>
<note><![CDATA[if true, return value is an integer]]></note>
</par>
</parameters>
<return>String, or integer if bInt is true.</return>
<demos>
<demo>
<url>http://cross-browser.com/toys/</url>
<note><![CDATA[It is also used by xWidth and xHeight]]></note>
</demo>
</demos>
<comments>
<comment>
<date></date>
<author>mf</author>
<note><![CDATA[For sProp use the css property name, not the object property name.
For finding width this works in Moz and Op, but in IE this only works if padding and border use pixel units in the CSS.]]></note>
</comment>
</comments>
<revisions>
<rev>
<num>5</num><date>14Mar05</date><author>mf</author>
<note><![CDATA[reduced by about 20 bytes]]></note>
</rev>
<rev>
<num>4</num><date>12Mar05</date><author>mf</author>
<note><![CDATA[return null on error]]></note>
</rev>
<rev>
<num>3</num><date></date><author>mf</author>
<note><![CDATA[added some error checking]]></note>
</rev>
<rev>
<num>2</num><date>23Aug04</date><author>mf</author>
<note><![CDATA[option to parseInt or return string]]></note>
</rev>
<rev>
<num>1</num><date>31Mar04</date><author>mf</author>
<note><![CDATA[put in it's own file for use with XC]]></note>
</rev>
</revisions>
</xlib_symbol>