Jump to content
Search Community

The bounds property doesn't work when stretching the object

freediver test
Moderator Tag

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...
  • 3 weeks later...

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.
×
×
  • Create New...