PDA

View Full Version : [FIXED] [4.2.0.265] Ext.layout.container.Auto.calculateOverflow()



harrydeluxe
16 Jan 2013, 7:22 AM
REQUIRED INFORMATION


Ext version tested:
Ext 4.2.0.265

Description:
It seems after refactor of this function, something have not been tested.
On line 508 and 509 the vars yauto and xauto are confused. The var me.lastOverflowAdjust on line 511 is not set.

mitchellsimoens
16 Jan 2013, 12:07 PM
lastOverflowAdjust is set in the completeLayout method.

Do you have a test case that produces the errors?

harrydeluxe
17 Jan 2013, 2:48 AM
When you click on an checkbox item, it will produce the errors.



Ext.onReady(function() {

Ext.create('Ext.window.Window', {
title: 'Testwindow',
layout: 'anchor',
constrain: true,
closeAction: 'hide',
resizable: false,
overflowY: 'auto',
maxHeight: 200,
width: 120,
items: [
{
xtype: 'form',
border: false,
anchor: '100%',
defaults: {
anchor: '100%'
},
items: [
{
xtype: 'checkboxgroup',
hideLabel: true,
columns: 1,
vertical: true,
items: [
{ boxLabel: 'Item 1', name: 'rb', inputValue: '1' },
{ boxLabel: 'Item 2', name: 'rb', inputValue: '2' },
{ boxLabel: 'Item 3', name: 'rb', inputValue: '3' },
{ boxLabel: 'Item 4', name: 'rb', inputValue: '4' },
{ boxLabel: 'Item 5', name: 'rb', inputValue: '5' },
{ boxLabel: 'Item 6', name: 'rb', inputValue: '6' },
{ boxLabel: 'Item 7', name: 'rb', inputValue: '7' },
{ boxLabel: 'Item 8', name: 'rb', inputValue: '8' },
{ boxLabel: 'Item 9', name: 'rb', inputValue: '9' },
{ boxLabel: 'Item 10', name: 'rb', inputValue: '10' },
{ boxLabel: 'Item 11', name: 'rb', inputValue: '11' },
{ boxLabel: 'Item 12', name: 'rb', inputValue: '12' },
{ boxLabel: 'Item 13', name: 'rb', inputValue: '13' }
]
}
]
}
],
buttons: [
{
text: 'Hello'
}
]
}).show();

});