BUG 10945 En IExplorer 8 no hay scroll en la ventana de Departaments SOLVED
- En el browser Internet Explorer 8, en Admin/ Users/ Departaments. Al tener varios departamentos no se tiene el scroll, hay que darle click en algun departamento y bajar con la techa de flecha hacia abajo. - Changed scrolls in the tree.TreeGrid by problems in IE8 browser.
This commit is contained in:
@@ -3,6 +3,25 @@
|
|||||||
* Jan 31th, 2011
|
* Jan 31th, 2011
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
function sizeHeight()
|
||||||
|
{
|
||||||
|
var sHeight = 0;
|
||||||
|
if (typeof window.innerHeight != 'undefined') {
|
||||||
|
sHeight = window.innerHeight;
|
||||||
|
} else if (typeof document.documentElement != 'undefined'
|
||||||
|
&& typeof document.documentElement.clientHeight != 'undefined'
|
||||||
|
&& document.documentElement.clientHeight != 0) {
|
||||||
|
sHeight = document.documentElement.clientHeight;
|
||||||
|
} else {
|
||||||
|
sHeight = document.getElementsByTagName('body')[0].clientHeight;
|
||||||
|
}
|
||||||
|
return sHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
Ext.EventManager.onWindowResize(function () {
|
||||||
|
treePanel.setSize('100%', sizeHeight());
|
||||||
|
});
|
||||||
|
|
||||||
//Keyboard Events
|
//Keyboard Events
|
||||||
new Ext.KeyMap(document,
|
new Ext.KeyMap(document,
|
||||||
[
|
[
|
||||||
@@ -189,10 +208,11 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
treePanel = new Ext.ux.tree.TreeGrid({
|
treePanel = new Ext.ux.tree.TreeGrid({
|
||||||
title: _('ID_DEPARTMENTS'),
|
title: _('ID_DEPARTMENTS'),
|
||||||
autoScroll: false,
|
autoScroll: true,
|
||||||
//width: 720,
|
width: '10%',
|
||||||
//height: 300,
|
height: sizeHeight(),
|
||||||
id: 'treePanel',
|
id: 'treePanel',
|
||||||
|
enableDD: true,
|
||||||
columns:[{
|
columns:[{
|
||||||
header: _('ID_DEPARTMENT_NAME'),
|
header: _('ID_DEPARTMENT_NAME'),
|
||||||
dataIndex: 'DEP_TITLE',
|
dataIndex: 'DEP_TITLE',
|
||||||
@@ -237,7 +257,8 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
viewport = new Ext.Viewport({
|
viewport = new Ext.Viewport({
|
||||||
layout: 'anchor',
|
layout: 'anchor',
|
||||||
autoScroll: true,
|
//autoScroll: true,
|
||||||
|
//autoHeight: true,
|
||||||
items: [treePanel]
|
items: [treePanel]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user