PDA

View Full Version : Panel showBy call gives odd display on screen



parky128
2 Oct 2013, 11:46 AM
Hi,

I have a panel that I am displaying using the showBy call passing in a button reference like so:


var googleRoutePanel = this.getGoogleRouteView(), extraInfoButton = this.getExtraInfoButton();
this.record = Ext.getStore('CurrentLocationStore').getById(untID);

if(!Ext.isDefined(googleRoutePanel)) {
googleRoutePanel = Ext.create('PinpointersTouch.view.GoogleRouteView');


}

this.getFieldsetResults().setTitle(this.record.data.UnitName);
this.getTxtDistanceAway().reset();
this.getTxtTravelTime().reset();
googleRoutePanel.showBy(extraInfoButton);

this.performRouteRequest();

On the initial showBy call, the panel does not display docked to the button, but on subsequent calls it seems to sort itself out.

See attached screen shots to better illustrate my issue, also note the Ext error in the console.

What could this be down to?

Thanks

fmoseley
4 Oct 2013, 12:19 AM
Could be a bug. What version of Touch are you using? What debugging have you done so far?