| Issue 49: | [ObjectHandlesV1]:How to increase & decrease font size according to objecthandles resizing | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Hi, i am using ObjectHandlesV1 and i want to do font size increase & decrease according to objecthandle resizing. how to increase & decrease font size according to objecthandles resizing. how to possible. please help me |
One way to do this is to set up a custom MXML shape/group definition with an attached OH model and an included text element. Then, bind the fontSize property for the text element to the model/object height (e.g. fontSize="{Math.abs(height)}"). You'll have to play with this a bit. One problem you'll encounter is that as the handles are resized, the text may start to extend beyond the horizontal border of the container object. There are a few possible solutions to that, but I'll leave that for you or someone else to explore as I haven't fixed that problem yet myself.