# Senocular Transform Tool Label resizing problem

**URL:** <https://forum.kirupa.com/t/senocular-transform-tool-label-resizing-problem/318743>\
**Category:** flash\
**Created:** [January 28, 2011, 9:04pm UTC](https://forum.kirupa.com/t/senocular-transform-tool-label-resizing-problem/318743 "2011-01-28T21:04:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![futurox](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@futurox](https://forum.kirupa.com/u/futurox)\
**Post date:** [January 28, 2011, 9:04pm UTC](https://forum.kirupa.com/t/senocular-transform-tool-label-resizing-problem/318743/1 "2011-01-28T21:04:01Z")

</div>

Hi!

I’ve tested Senocular Transform tool since 2 weeks ([build 2010.12.07 (beta) available](http://www.senocular.com/flash/tutorials/transformtool/src/transformtool_2010-12-07.zip)) and I founded something strange when I have set this.tool.transformMethod == “properties”;. Try this code:

```
        var lab:TextField = new TextField();
        lab.text = "some Text" ;
        
        lab.width = 200;
        lab.height = 40;
        addChild(lab);
        
        // create the Transform Tool
        var tool:TransformTool = new TransformTool(new ControlSetStandard());
        tool.transformMethod = "properties";
        tool.negativeScaling = false;
        addChild(tool);
        
        // select the box with the transform tool when clicked. 
        // deselect when clicking on the stage
        lab.addEventListener(MouseEvent.MOUSE_DOWN, tool.select);
        
        stage.addEventListener(MouseEvent.MOUSE_DOWN, tool.deselect);

```

There’s a problem with resizing the Label. I cannot control resizing when I move my mouse.  
There’s no problem if I change Label into Sprite from the example at [http://www.senocular.com/flash/tutorials/transformtool/](http://www.senocular.com/flash/tutorials/transformtool/) .

I’ve founded that the problem is in the method applyTransformToTarget in TransformTool class (tool.transformMethod == TRANSFORM\_PROPERTIES;). If I change the lines:

\_target.width = bounds.width \* ratioX;  
\_target.height = bounds.height \* ratioY;

into

\_target.width = bounds.width ;  
\_target.height = bounds.height ;

the problem is gone but then \_target is not actualized width and height property (is still the same size) after next selecting the target.
