I'm looking for something different. If the user enters '79%' for the
width, I want to obtain the string '79%', not the size which represents
79% of the canvas width.
Thanks!
Phil
On Wed, Jul 6, 2011 at 7:43 PM, P T Withington wrote:
Well a constraint is really just a handler for the dependent variables
that updates the actual value, so in this case if you ask for the
elements width or height, you will get the current real value. The
best way to forward those values (and track them) is to make another
constraint. Constraints are easy to write in OL, but hard to write in
JS. You can get an inkling of a hand-written constraint by looking at
the implementation of the align and valign attributes that let you say
things like 'center', 'top', etc. Those get interpreted into
constraints on the parent bound.
Hope that helps.
On 2011-07-06, at 19:30, [email protected] wrote:
Hi Tucker,
Is it possible to retrieve the raw constraint values of an attribute?
For example,
<html width="100%" height="100%" .../>
I'd like to obtain the 100% values for width and height so I can
forward them to the iframemanager.
Thanks!
Phil