Determine the dimensions of a div

I’m struggling to find a reliable way of determining how an object’s measurements have been set in Freeway 7. I can get the overall width or height if the object in pixels perfectly well but I want to know if the object is set as flexible, minimum, maximum etc.

Essentially my Action needs to confirm that the selected object is flexible and, if not, throw an error to the user.
Any ideas?
Thanks,
Tim.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Any ideas? I’ve been through the Actions API documentation that I have and can’t locate anything. I’ve also tried numerous variations to test the layout mode of an item all with no joy.

I’d hate to have to put UI in my Action to ask the user for this information if it is freely available elsewhere.
Regards,
Tim.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim,

The only way to get that info would be to interrogate the CSS at each breakpoint during a publish. The code in the latest Box Sizing Action should give you an indication of what needs to be done.

Joe

On 26 Sep 2014, at 16:25, Tim Plumb email@hidden wrote:

Any ideas? I’ve been through the Actions API documentation that I have and can’t locate anything. I’ve also tried numerous variations to test the layout mode of an item all with no joy.

I’d hate to have to put UI in my Action to ask the user for this information if it is freely available elsewhere.
Regards,
Tim.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Joe. I was just looking at that (see my comments on the other thread) and can see how I’d need to look for these values at publish time.

Can I ask that you consider adding something in the API for these? Something like;
fwItem.fwWidthHeightMode (catchy)
which would then return an index (1-5) depending on the measurement method used.

It would mean I can easily check the layout mode for an item and feed info back to the user before they publish the page.
Thanks,
Tim.

On 26 Sep 2014, at 16:41, Joe Billings wrote:

The code in the latest Box Sizing Action should give you an indication of what needs to be done.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options