I have a strange bug with dropping in a new titleRenderer on a 
<mx:AxisRendrerer>.  It's so strange I feel I must be making a conceptual 
mistake.

Basically I've defined a new Component that contains a Label and TextInput, the 
idea being you click on the label and it turns into a TextInput to allow you to 
edit an axis's title.

However, if I type in a 'long' string into the input (where long means you have 
to scroll the text to see all of it) when I try and switch back to the Label 
the axis renderer decides to regenerate the titleRenderer meaning I lose the 
changes made to the title.

Simply making the text box bigger hasn't helped (and that's hackish workaround 
anyways), a similar amount of text (even though it does require scrolling to 
see) still triggers this regeneration.

I can't help but feel I'm missing how titleRenderer's should work.  Is this 
expected behaviour or have I got bugs in my code. Obviously, I could post code 
if this would help answer my question.

I notice in the example here: 
http://www.virtualnomad.net/wp-content/uploads/editablecharts/editablecharts.html
 that he has the same problem I do, click on on an axis title, type in short 
text and it works, type in long text and it gets replaced with a new component 
(and it throws a NPE just to round things off, my code doesn't do that).

--
Alistair Hutton


Reply via email to