PDA

View Full Version : [FIXED-176] Incorrect rendering of Panel. Missing angle bracket in template.



elishnevsky
16 Jul 2010, 11:36 AM
Hi,

There is an angle bracket missing in the template in Panel.js line 67 right after </tpl>. It results in an incorrect rendering. Sencha Touch version 0.91. Here is what it should be:


renderTpl: new Ext.XTemplate(
'<div <tpl if="id">id="{id}"</tpl> class="{baseCls} {cls} {cmpCls}<tpl if="ui"> {uiBase}-{ui}</tpl>" <tpl if="style"> style="{style}"</tpl>>',
'<div class="{baseCls}-body"<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>></div>',
'</div>',
{compiled: true}
),

Thanks.

PTG
17 Jul 2010, 4:40 AM
There is the same problem with the Ext.form.FormPanel.

evant
18 Jul 2010, 7:11 PM
Thanks, both of these are corrected.

PTG
27 Jul 2010, 10:27 AM
It's not fixed in v0.92.
In fact it's even worse than before, you removed another ">".

elishnevsky
27 Jul 2010, 10:44 AM
I don't see where another ">" was removed from, but I don't see the fix either. That's too bad :(

PTG
27 Jul 2010, 10:51 AM
A ">" was removed at the end of the first line of the template.

I didn't want to post the code again, it's confusing enough, and your first post still has the proper fix.

elishnevsky
27 Jul 2010, 10:54 AM
Yep, you're right.

Jamie Avins
27 Jul 2010, 10:56 AM
The renderTpl has been updated and fixed for sure the time. Thanks for staying on it.