PDA

View Full Version : [INFOREQ] Rtl error of bordered panel



Mahmoud690
30 Apr 2014, 7:24 AM
I have a border panel with "center" and "west" panels. if I collapse the west panel and "click" on it to show it in "unpinned" mode , the animation does wrong. It starts the panel show from left instead of right side.

mitchellsimoens
1 May 2014, 4:22 AM
Can you post a test case?

Mahmoud690
2 May 2014, 11:32 PM
Yes! , here it is :


<script>
(function () {

Ext.onReady(function () {
Ext.create('Ext.container.Viewport', {
rtl: true,
layout: 'border',
defaultType: 'panel',
items: [
{
region: 'west',
xtype: 'panel',
collapsible: true,
split: false,
title: 'Tools',
height: 130,
width:120,
layout: {
type: 'vbox',
align: 'stretch'
},
items: [{
xtype: 'button',
margin: '10',
html: '<div class="tw-button-icon Project48.png"></div><div>Projects</div>',
}, {
xtype: 'button',
margin: '10',
html: '<div class="tw-button-icon baravord.gif"></div><div>Blobb</div>',


}, {
xtype: 'button',
margin: '10',
html: '<div class="tw-button-icon userSettings48.png"></div><div>Settings</div>',
}]
}, {
region: 'center',
xtype: 'tabpanel',
id: 'mainPanel',
activeTab: 1,
defaults: {
closable: true
},
items: [{
title: 'Home',
closable: false,
layout: {
type: 'vbox',
align: 'center',
pack: 'center'
},
items: [{
src: '@Url.Content("~/LogoBig.jpg")',
xtype: 'image',
width: 700,
height: 500
}]
},
]
}]
});
});
})();
</script>

Mahmoud690
10 May 2014, 9:59 PM
@mitchellsimoens could you test it?