PDA

View Full Version : [INFOREQ] Able to add redundant link to my classes in viewport



pdm
22 Feb 2012, 9:29 AM
1. add a panel to my Views
2. drag that panel to Views
3. choose 'Link'
4. edit a property on the Linked item
5. note that the code isn't updated for the property you edited

aconran
22 Feb 2012, 10:22 AM
Just did a brief test to make sure linked instances were working as expected and they are...

Could you give us a further test case?

pdm
23 Feb 2012, 12:57 AM
I can create this:
32053

which produces this Viewport.js:

Ext.define('MyApp.view.Viewport', {
extend: 'MyApp.view.MyPanel',
renderTo: Ext.getBody(),
requires: [
'MyApp.view.MyPanel'
]
});


I can edit properties on the linked item, look at it's code view, and see nothing has updated.

If this is expected behaviour it is misleading.

aconran
23 Feb 2012, 9:01 AM
This is expected behavior. The superclass will have all of those configurations.

pdm
23 Feb 2012, 9:16 AM
but it doesn't - i can add config options to the subclass and they don't show up on the parent.

the subclass doesn't seem to get an instance or any code generated, and seems to be a redundant representation of nothing.

aconran
23 Feb 2012, 9:18 AM
Could you spell out a complete test case that shows the problem?