BUG 8764 When exporting processes with long names, not display all el SOLVED

- When the title is too long the window is offset by the scroll bar to see a wrong way and also the title.
- Molding was conducted in the processmap title and also the link generated in the process_export to trim the name according to the box you have.
This commit is contained in:
Marco Antonio Nina
2012-04-02 16:14:50 -04:00
parent 1ccc82e440
commit 70cbd8c9de
3 changed files with 46 additions and 3 deletions

View File

@@ -342,7 +342,7 @@ var processmap=function(){
limit :true,
size :{w:700,h:420},
position:{x:50,y:50,center:true},
title :G_STRINGS.ID_PROCESSMAP_EDIT_PROCESS+": "+this.data.db.title.label,
title :G_STRINGS.ID_PROCESSMAP_EDIT_PROCESS+": "+ moldTitle(this.data.db.title.label,700),//this.data.db.title.label,s
theme :this.options.theme,
control :{close:true,resize:false},fx:{modal:true},
statusBar:false,
@@ -372,7 +372,7 @@ var processmap=function(){
limit :true,
size :{w:600,h:230},
position:{x:50,y:50,center:true},
title :G_STRINGS.ID_PROCESSMAP_EXPORT_PROCESS+": "+this.data.db.title.label,
title :G_STRINGS.ID_PROCESSMAP_EXPORT_PROCESS+": "+moldTitle(this.data.db.title.label,600),//this.data.db.title.label,
theme :this.options.theme,
control :{close:true,resize:false},fx:{modal:true},
statusBar:false,
@@ -2706,3 +2706,15 @@ function exitEditor()
{
location.href = '../processes/mainInit';
}
function moldTitle(title, size)
{
size = parseInt(size);
chain = parseInt(title.length *6);
if ((size - chain) < 0)
{
chain = parseInt((size/6)-33);
newTitle = title.substring(0,chain);
title = newTitle+"...";
}
return title;
}