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',
|
||||||
@@ -210,8 +230,8 @@ Ext.onReady(function() {
|
|||||||
tpl: new Ext.XTemplate('{DEP_STATUS:this.formatStatus}', {
|
tpl: new Ext.XTemplate('{DEP_STATUS:this.formatStatus}', {
|
||||||
formatStatus: function(v) {
|
formatStatus: function(v) {
|
||||||
switch(v){
|
switch(v){
|
||||||
case 'ACTIVE': return '<font color="green">' + _('ID_ACTIVE') + '</font>'; break;
|
case 'ACTIVE':return '<font color="green">' + _('ID_ACTIVE') + '</font>';break;
|
||||||
case 'INACTIVE': return '<font color="red">' + _('ID_INACTIVE') + '</font>'; break;
|
case 'INACTIVE':return '<font color="red">' + _('ID_INACTIVE') + '</font>';break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -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]
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -399,7 +420,7 @@ EditDepartmentAction = function(){
|
|||||||
editForm.getForm().findField('manager').getStore().addListener('load',function(s,r,o){
|
editForm.getForm().findField('manager').getStore().addListener('load',function(s,r,o){
|
||||||
editForm.getForm().findField('manager').setValue(dep_node.attributes.DEP_MANAGER);
|
editForm.getForm().findField('manager').setValue(dep_node.attributes.DEP_MANAGER);
|
||||||
});
|
});
|
||||||
editForm.getForm().findField('manager').store.load({params: {DEP_UID: dep_node.attributes.DEP_UID }});
|
editForm.getForm().findField('manager').store.load({params: {DEP_UID: dep_node.attributes.DEP_UID}});
|
||||||
w = new Ext.Window({
|
w = new Ext.Window({
|
||||||
title: _('ID_EDIT_DEPARTMENT'),
|
title: _('ID_EDIT_DEPARTMENT'),
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
@@ -421,7 +442,7 @@ DeleteDepartmentAction = function(){
|
|||||||
viewport.getEl().mask(_('ID_PROCESSING'));
|
viewport.getEl().mask(_('ID_PROCESSING'));
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
url: 'departments_Ajax',
|
url: 'departments_Ajax',
|
||||||
params: {action: 'canDeleteDepartment', dep_uid: DEP_UID },
|
params: {action: 'canDeleteDepartment', dep_uid: DEP_UID},
|
||||||
success: function(r,o){
|
success: function(r,o){
|
||||||
viewport.getEl().unmask();
|
viewport.getEl().unmask();
|
||||||
var response = Ext.util.JSON.decode(r.responseText);
|
var response = Ext.util.JSON.decode(r.responseText);
|
||||||
|
|||||||
Reference in New Issue
Block a user