dimanche 12 octobre 2014

Parent's view buttons showing after push in NavigationView

I've been experiencing some weird behaviour when pushing a view in a NavigationController in Sencha Touch.

This has happened to me before, once, but I solved it by setting a background colour. This time that won't do it though.

The thing is when I push the view I can still see the buttons from the previous view all over my new view. This happens both on simulator and device (iOS 7.1 and 8 is what I tested so far)

For example...

When I press "Trazar" in this view...



it shows this view...



But as you can see the buttons from my first view are still visible.

Here's the button's handler...


Code:



{ xtype:'button', text:'Trazar', width:150, ui:'action-round', handler:function(btn){ var buslist = Ext.create('ibus.view.BusList'); btn.up('buslist').push(buslist);}

And here's what BusList looks like...


Code:



Ext.define('ibus.view.BusList',{ extend:'Ext.Panel', initialize:function(){ console.log(this) }, config:{ title:'Lineas', style:'background-color:#EEEEEE', layout: 'fit', title:'Lineas', items: [{ }] }})

I removed all items from the view to try and spot where the issue might be coming from, but I still get the same result with a pretty much empty view and I cannot for the life of me figure out where I'm failing.

Any help on this will be greatly appreciated.



Parent's view buttons showing after push in NavigationView

Aucun commentaire:

Enregistrer un commentaire