Chin Kuan, Low wrote:
In Html object, we can get the actual size using scrollWidth/scrollHeight, but in XUL's object there don't have this two property. So how can I get the actual size? I have try to get it using style.width, but it return empty string.I'm not exactly what scrollWidth/scrollHeight return from HTML objects (I was under the impression it was offsetWidth and offsetHeight you should use), but the following should give you the size of a XUL object:
// Assume 'x' is the XUL object.
var w = x.boxObject.width;
var h = x.boxObject.height;
--
James Ross <[EMAIL PROTECTED]>
Webmaster, The University of Warwick Computing Society
http://www.warwickcompsoc.co.uk/
What code? You mean that was a production machine?
-- Bugzilla Quip List
