From 8b9773f2ec93c9827c30f69986100a35b17c79d7 Mon Sep 17 00:00:00 2001 From: Odin-interactive Date: Thu, 22 Jun 2023 20:56:02 +0300 Subject: [PATCH] Update tuesday_visual.html --- tuesday_visual.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tuesday_visual.html b/tuesday_visual.html index e7b16ac..d80c3d9 100755 --- a/tuesday_visual.html +++ b/tuesday_visual.html @@ -5170,9 +5170,13 @@ var b=((objFocus.style.paddingTop.replace('px',''))*2)+((objFocus.style.borderTopWidth)?parseFloat(objFocus.style.borderTopWidth):0)+((objFocus.style.borderBottomWidth)?parseFloat(objFocus.style.borderBottomWidth):0); var r=((objFocus.style.paddingLeft.replace('px',''))*2)+((objFocus.style.borderRightWidth)?parseFloat(objFocus.style.borderRightWidth):0)+((objFocus.style.borderLeftWidth)?parseFloat(objFocus.style.borderLeftWidth):0); arr_e.position[0]=0;arr_e.position[2]=0;arr_e.position[1]=0;arr_e.position[3]=0 - arr_e.position[0]=parseFloat((z/layout_width*100).toFixed(2))+'%'; + //arr_e.position[0]=parseFloat((z/layout_width*100).toFixed(2))+'%'; + if((layout_width/2)>=z){arr_e.position[0]=(z/layout_width*100).toFixed(2)+'%';} + else{z=parseFloat(getComputedStyle(resizers,null).getPropertyValue('right').replace('px',''));arr_e.position[1]=(z/layout_width*100).toFixed(2)+'%';} z=resizers.style.top.replace('px','') - arr_e.position[2]=parseFloat((z/layout_height*100).toFixed(2))+'%'; + if((layout_height/2)>=z){arr_e.position[2]=(z/layout_height*100).toFixed(2)+'%';} + else{z=parseFloat(getComputedStyle(resizers,null).getPropertyValue('bottom').replace('px',''));arr_e.position[3]=(z/layout_height*100).toFixed(2)+'%';} + //arr_e.position[2]=parseFloat((z/layout_height*100).toFixed(2))+'%'; if(!a==0){arr_e.angle=parseFloat(a.toFixed(2));} else if(!s==0){ if(arr_e.url){