스크롤링 수정

main
이범준 1 year ago
parent 55ba73668a
commit 042e1a1982

@ -137,7 +137,8 @@ pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.scrollable = true;
/**************************************************************************
* DatasetControl
**************************************************************************/
@ -199,12 +200,17 @@ $(document).ready(function(){
}
$P.scrollEnd = (obj) => {
if(!$P.scrollable){
return;
}
var el = $(obj);
if(el.scrollTop() == 0){
return;
}
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
$P.scrollable = false;
$P.scrollCrdnList();
}
}
@ -236,6 +242,8 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$P.scrollable = true;
}
$P.getParams = () => {

@ -153,7 +153,8 @@ pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.scrollable = true;
/**************************************************************************
* DatasetControl
**************************************************************************/
@ -216,12 +217,17 @@ $(document).ready(function(){
}
$P.scrollEnd = (obj) => {
if(!$P.scrollable){
return;
}
var el = $(obj);
if(el.scrollTop() == 0){
return;
}
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
$P.scrollable = false;
$P.scrollCrdnList();
}
}
@ -253,6 +259,8 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$P.scrollable = true;
}
$P.getParams = () => {

@ -110,7 +110,8 @@ pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.scrollable = true;
/**************************************************************************
* DatasetControl
**************************************************************************/
@ -215,12 +216,17 @@ $(document).ready(function(){
}
$P.scrollEnd = (obj) => {
if(!$P.scrollable){
return;
}
var el = $(obj);
if(el.scrollTop() == 0){
return;
}
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
$P.scrollable = false;
$P.scrollCrdnList();
}
}
@ -250,6 +256,8 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$P.scrollable = true;
}
$P.getParams = () => {

@ -223,7 +223,8 @@ pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.scrollable = true;
/**************************************************************************
* DatasetControl
**************************************************************************/
@ -328,12 +329,17 @@ $(document).ready(function(){
}
$P.scrollEnd = (obj) => {
if(!$P.scrollable){
return;
}
var el = $(obj);
if(el.scrollTop() == 0){
return;
}
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
$P.scrollable = false;
$P.scrollCrdnList();
}
}
@ -374,6 +380,8 @@ $(document).ready(function(){
$("#crdnTbody--${pageName}").html(trs.join());
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
$P.scrollable = true;
}
$P.getParams = () => {

@ -335,7 +335,8 @@ pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.scrollable = true;
/**************************************************************************
* DatasetControl
**************************************************************************/
@ -486,12 +487,17 @@ $(document).ready(function(){
}
$P.scrollEnd = (obj) => {
if(!$P.scrollable){
return;
}
var el = $(obj);
if(el.scrollTop() == 0){
return;
}
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
$P.scrollable = false;
$P.scrollInspectionDataList();
}
}
@ -620,7 +626,8 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$P.scrollable = true;
}
$P.getParams = () => {

@ -118,7 +118,8 @@ pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.scrollable = true;
/**************************************************************************
* DatasetControl
**************************************************************************/
@ -172,12 +173,17 @@ $(document).ready(function(){
}
$P.scrollEnd = (obj) => {
if(!$P.scrollable){
return;
}
var el = $(obj);
if(el.scrollTop() == 0){
return;
}
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
$P.scrollable = false;
$P.scrollCrdnList();
}
}
@ -211,6 +217,8 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$P.scrollable = true;
}

@ -130,7 +130,8 @@ pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.scrollable = true;
/**************************************************************************
* DatasetControl
**************************************************************************/
@ -193,12 +194,17 @@ $(document).ready(function(){
}
$P.scrollEnd = (obj) => {
if(!$P.scrollable){
return;
}
var el = $(obj);
if(el.scrollTop() == 0){
return;
}
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
$P.scrollable = false;
$P.scrollCrdnList();
}
}
@ -232,6 +238,8 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
$P.scrollable = true;
}
$P.getParams = () => {

@ -50,25 +50,25 @@
return 'FIREFOX';
} else if (agent.indexOf('EDG') >= 0) {
return 'EDGE';
} else if (agent.indexOf('SAFARI') >= 0) {
return 'SAFARI';
} else if (agent.indexOf('CHROME') >= 0) {
return 'CHROME';
} else if (agent.indexOf('SAFARI') >= 0) {
return 'SAFARI';
} else {
return '';
}
}
const BROWSER_NAME = getBrowserName();
var VERTICAL_SCROLL_HEIGHT = 15;
var VERTICAL_SCROLL_HEIGHT = 14;
switch(BROWSER_NAME){
case "EDGE" :
VERTICAL_SCROLL_HEIGHT = 15;
VERTICAL_SCROLL_HEIGHT = 14;
break;
case "FIREFOX" :
VERTICAL_SCROLL_HEIGHT = 17;
VERTICAL_SCROLL_HEIGHT = 15;
break;
case "CHROME" :
VERTICAL_SCROLL_HEIGHT = 17;
VERTICAL_SCROLL_HEIGHT = 15;
break;
}

Loading…
Cancel
Save