Skip to main content
Known Participant
Sep 10, 2010 4:13 AM UTC
Question

applyLeafFormat not working if span text is empty

Hi - We have a text area, where we can type in text, change font, size etc.  The change font or color uses applyLeafFormat. It works fine if there is some text. If the span text is empty, change font or size does not work. here is what am doing for change font size. Pls guide me whats wrong and why is it not working if there is no text .

                var tlf:TextLayoutFormat = new TextLayoutFormat();
                tlf.fontSize = int(newFontSize);
                var editManager:IEditManager = textFlow.interactionManager as IEditManager;
                textFlow.interactionManager.selectAll();
                editManager.applyLeafFormat(tlf);
                textFlow.interactionManager.selectRange(textFlow.interactionManager.absoluteEnd, textFlow.interactionManager.absoluteEnd);
                textFlow.interactionManager.setFocus();

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
Sep 10, 2010 11:21 PM UTC

I agree that's a bug.  Got it logged.

Thanks,

Richard

Translate
MageshRAuthor
Known Participant
Sep 11, 2010 5:12 PM UTC

Hi - Can you get me the bug # so that I can track the status of the bug.


Translate
Inspiring
Sep 13, 2010 4:59 PM UTC

The bug number is 2716695.  Note: its not available to track on jira - TLF is an internal bug system.  When the bug is fixed the relase notes will be updated.

Richard

Translate