mardi 17 juin 2014

Cannot render again Ext.window.Window when DIV is updated

I render a Window into a DIV with the renderTo config. However, there is some AJAX function that can update that same DIV with other HTML content.When I try to load the Window again after the DIV had been updated, the Window is not rendered. I have no errors in console.

I have to refresh the whole page to make it render again. I suspect that I have to destroy the component, before updating the DIV, but eveything I tried is not working.


this is my window:



Code:



mapWindow = Ext.create('Ext.window.Window', {
title: "Layer: {{ shapefile }} | Click on feature to edit.",
id: 'mapWindow',
x: 350,
y: 120,
height: 800,
width: 1000,
renderTo: 'pageContent',
floatable: true,
collapsible: true,
closable: true,
bodyBorder: false,
maximizable: true,
shadowOffset: 6,
layout: 'fit',
items: [
mappanel
]
}).show();




Aucun commentaire:

Enregistrer un commentaire