Expand my Community achievements bar.

Can't set font size in SimpleChat

Avatar

Level 3
Just a heads up that historyFontSize has no effect on the
appearance of the SimpleChat pod, either when provided in the MXML
tag or explicitly set in actionscript.

2 Replies

Avatar

Former Community Member
Hi

It used to work. I will get back with details in it.



Thanks

Hironmay Basu

Avatar

Former Community Member
Hi Rick,



I ran a simple code ( attached ) with SimpleChat and I agree
though it works fine once you are in the session and you get any
messages or send any message , it is of the size you have set ,

but the messages you get syncd up in the very beginning were
being shown in the default size , and the reason was when you set
the property in mxml , the model wasn't even created and when we
create the model, we were not passing that value and we don't store
the value in the server.



I have fixed this in the code and



if ( _historyFontSizeChanged ) {

_model.historyFontSize = _historyFontSize ;

}



is the extra line i added in SimpleChat.as when i create the
SimpleChatModel i.e.

_model = new SimpleChatModel(_sessionDependent);

_model.sharedID = sharedID ;

if ( _historyFontSizeChanged ) {

_model.historyFontSize = _historyFontSize ;

}

_model.connectSession = _connectSession ;

_model.subscribe();





Thanks for poiting it out. Will be updated in the SDK in
coming weeks.

Regards

Hironmay Basu