voyent
getting real dimension of component from code  XML
Forum Index -> Components
Author Message
jmind

Joined: 07/Jul/2008 00:00:00
Messages: 54
Offline


Is there a way to know the real dimension of a component from code? With real i mean the actual dimension of the component, that could differ from the dimension declared in the attributes. For example, suppose i have a component like this: <ice:somecomponent width="50%" height="100%" />
is there a way to get the real size the component gets when it is rendered? I know how to that with prototype. How can i do that from java?

italian coder
mark.collette


Joined: 07/Feb/2005 00:00:00
Messages: 1692
Offline


You can specify a CSS style or class via the style and styleClass attributes. But, there's no way to query the rendered components in the browser, from Java, short of writing your own Javascript that will then run on the browser.
[Email]
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team