I am new in ExtJS 6 and GeoExt3 but how do I align layers to my tree panel to the left of the panel. The layers are showing but on the right, I have tried align: 'left' on the panel and its not working, please help.
Asked
Active
Viewed 163 times
0
-
You should create a fiddle with your case, or at least provide some code, because for now it's not clear what layout do you have. Is the tree panel a docked item of the panel, or are they both viewport items, or items inside a container with hbox layout? – scebotari66 Jun 11 '17 at 06:42
-
'region: 'east', width: '30%', items: [{ title: 'Data Menu', xtype: 'treepanel', viewConfig: { plugins: {ptype: 'treeviewdragdrop'} }, store: treeStore, name: 'treelayers', dataIndex: 'treelayers', useArrows: true, rootVisible: false ' – Asanda Lamba Jun 12 '17 at 05:30
1 Answers
0
It seems that you have a border layout. Setting region: "west"
for the treepanel
wrapper container should solve your problem.

scebotari66
- 3,395
- 2
- 27
- 34
-
-
I mean that in the code you've provided in the comment, you should change the `region:"east"` to `region:"west"`, and it will align the treepanel to the left. Here is a fiddle: https://fiddle.sencha.com/#view/editor&fiddle/219k – scebotari66 Jun 12 '17 at 07:00
-
Tried but still not working, I see the fiddle works fine but still not working for me – Asanda Lamba Jun 12 '17 at 09:02
-
Tried but still not working, I see the fiddle works fine but still not working for me. I think the default is set to align: 'right' on my Ext, I have tried to re-create your fiddle but it still align to the right – Asanda Lamba Jun 12 '17 at 09:16
-
It would be great if you could save your recreated fiddle and share it.. – scebotari66 Jun 12 '17 at 09:25