BUG-10696 Problema con las ventanas modales.

Las ventanas popup del diseniador de procesos se mueven pudiendo estas perderse. Por lo que se aumento una validacion para que el atributo Limit que controla este comportamiento funcione correctamente.
This commit is contained in:
jennylee
2013-09-26 09:05:46 -04:00
parent 6a4d7513de
commit 2d46b232ab
3 changed files with 10 additions and 1 deletions

View File

@@ -268,7 +268,6 @@ leimnud.Package.Public({
{
if(this.options.limit===true)
{
var rng=this.parent.dom.positionRange(this.linkRef,false,true);
rG={
l:true,
t:true
@@ -284,6 +283,12 @@ leimnud.Package.Public({
{
tL=parseInt(this.elementStart[i].x+(cursor.x-this.cursorStart.x),10);
tT=parseInt(this.elementStart[i].y+(cursor.y-this.cursorStart.y),10);
if (tL > (screen.width - (element.clientWidth + 25))) {
rG.l = false;
}
if (tT > (screen.height - (element.clientHeight + 200))) {
rG.t = false;
}
if(rG.l)
{
this.parent.dom.setStyle(this.linkRef[i],{

View File

@@ -14,6 +14,7 @@ var oPanel;
function newDbConnection() {
oPanel = new leimnud.module.panel();
oPanel.options = {
limit :true,
size :{w:450,h:380},
position:{x:0,y:0,center:true},
title :G_STRINGS.ID_DBS_NEW,
@@ -129,6 +130,7 @@ function editDbConnection(DBS_UID)
oPanel = new leimnud.module.panel();
oPanel.options = {
limit :true,
size :{w:450,h:380},
position:{x:0,y:0,center:true},
title :G_STRINGS.ID_DBS_EDIT,
@@ -235,6 +237,7 @@ function testDBConnection()
var myPanel = new leimnud.module.panel();
currentPopupWindow = myPanel;
myPanel.options = {
limit :true,
size:{w:500,h:400},
position:{center:true},
title: G_STRINGS.DBCONNECTIONS_TEST,

View File

@@ -2772,6 +2772,7 @@ function showLogCaseSchedulerList(PRO_UID)
{
mainPanel = new leimnud.module.panel();
mainPanel.options = {
limit :true,
size :{w:640,h:450},
position:{x:0,y:0,center:true},
title :"Case Scheduler Log List",