Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
freediver

The bounds property doesn't work when stretching the object

Recommended Posts

Flex Transform Manager version = 1.943

 

I made a simple transform manager (300px*300px) that contains a text element.

I want this text to be movable/stretchable inside a smaller area than the transform manager : I want to let a 10 pixels distance from the border of the tranform manager.

To make it possible, I changed the bounds property of the transform item associated to the text element by reducing it from 10 pixels.

When I move the text element inside the transform manager, everything works fine, the new bounds are well applied, but when I stretch the text element to one of the transform manager corner, the bounds are no longer applied.

 

Here is a sample application that reproduces the awaited behavior :

<?xml version="1.0" encoding="utf-8"?>
               xmlns:transform="com.greensock.transform.*"
               layout="absolute"
               creationComplete="addTextBounded()">



                                   x="100"
                                   y="100"
                                   width="300"
                                   height="300"
                                   backgroundColor="#93A3FF"
                                   lineColor="#FF5F00"
                                   lineThickness="2" />

Link to comment
Share on other sites

  • 2 months later...

I'm so sorry for the late reply. I completely missed your post until I stumbled across it today. Anyway, thanks for pointing out that issue. It should be fixed in the latest version. Just log into your GreenSock account to get it: https://www.greensock.com/account/. Sorry about any hassle that caused.

Link to comment
Share on other sites

  • 3 weeks later...

Ok thanks, I'll test it as soon as possible!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×