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:
@@ -268,7 +268,6 @@ leimnud.Package.Public({
|
|||||||
{
|
{
|
||||||
if(this.options.limit===true)
|
if(this.options.limit===true)
|
||||||
{
|
{
|
||||||
var rng=this.parent.dom.positionRange(this.linkRef,false,true);
|
|
||||||
rG={
|
rG={
|
||||||
l:true,
|
l:true,
|
||||||
t:true
|
t:true
|
||||||
@@ -284,6 +283,12 @@ leimnud.Package.Public({
|
|||||||
{
|
{
|
||||||
tL=parseInt(this.elementStart[i].x+(cursor.x-this.cursorStart.x),10);
|
tL=parseInt(this.elementStart[i].x+(cursor.x-this.cursorStart.x),10);
|
||||||
tT=parseInt(this.elementStart[i].y+(cursor.y-this.cursorStart.y),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)
|
if(rG.l)
|
||||||
{
|
{
|
||||||
this.parent.dom.setStyle(this.linkRef[i],{
|
this.parent.dom.setStyle(this.linkRef[i],{
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ var oPanel;
|
|||||||
function newDbConnection() {
|
function newDbConnection() {
|
||||||
oPanel = new leimnud.module.panel();
|
oPanel = new leimnud.module.panel();
|
||||||
oPanel.options = {
|
oPanel.options = {
|
||||||
|
limit :true,
|
||||||
size :{w:450,h:380},
|
size :{w:450,h:380},
|
||||||
position:{x:0,y:0,center:true},
|
position:{x:0,y:0,center:true},
|
||||||
title :G_STRINGS.ID_DBS_NEW,
|
title :G_STRINGS.ID_DBS_NEW,
|
||||||
@@ -129,6 +130,7 @@ function editDbConnection(DBS_UID)
|
|||||||
|
|
||||||
oPanel = new leimnud.module.panel();
|
oPanel = new leimnud.module.panel();
|
||||||
oPanel.options = {
|
oPanel.options = {
|
||||||
|
limit :true,
|
||||||
size :{w:450,h:380},
|
size :{w:450,h:380},
|
||||||
position:{x:0,y:0,center:true},
|
position:{x:0,y:0,center:true},
|
||||||
title :G_STRINGS.ID_DBS_EDIT,
|
title :G_STRINGS.ID_DBS_EDIT,
|
||||||
@@ -235,6 +237,7 @@ function testDBConnection()
|
|||||||
var myPanel = new leimnud.module.panel();
|
var myPanel = new leimnud.module.panel();
|
||||||
currentPopupWindow = myPanel;
|
currentPopupWindow = myPanel;
|
||||||
myPanel.options = {
|
myPanel.options = {
|
||||||
|
limit :true,
|
||||||
size:{w:500,h:400},
|
size:{w:500,h:400},
|
||||||
position:{center:true},
|
position:{center:true},
|
||||||
title: G_STRINGS.DBCONNECTIONS_TEST,
|
title: G_STRINGS.DBCONNECTIONS_TEST,
|
||||||
|
|||||||
@@ -2772,6 +2772,7 @@ function showLogCaseSchedulerList(PRO_UID)
|
|||||||
{
|
{
|
||||||
mainPanel = new leimnud.module.panel();
|
mainPanel = new leimnud.module.panel();
|
||||||
mainPanel.options = {
|
mainPanel.options = {
|
||||||
|
limit :true,
|
||||||
size :{w:640,h:450},
|
size :{w:640,h:450},
|
||||||
position:{x:0,y:0,center:true},
|
position:{x:0,y:0,center:true},
|
||||||
title :"Case Scheduler Log List",
|
title :"Case Scheduler Log List",
|
||||||
|
|||||||
Reference in New Issue
Block a user