ParkToAPP 버그항목 일시 추가
Author
changhee1220
Date
2024-06-15 17:20
Views
8
//24-06-15 myViewer 탑재 시 전체 이미지 파일 사이즈 커지는 이슈
-----------------------------------------------------------------
하기의 코드가 모든 이미지 사이즈를 크게 키우는 것으로 확인 됨.
class myViewer {
//Set Variables
if(!isMobile.any()) {
// this.width = $(window).width() / 10.5;
// this.height = 200;
} else {
this.width = $(window).width() / 2.5;
this.height = 150;
}
-----------------------------------------------------------------
thumbNailClass를 적용하고 하기의 코드로 변경 적용함.
//Draw Gallery
if(imageFileKeyVals != null) {
if(imageFileKeyVals.length > 0) {
this.drawImageonGallery(imageFileKeyVals);
this.setSizeForElement(this.element);
}
}
};
setSizeForElement(element) {
let width, height;
if(!isMobile.any()) {
width = $(window).width() / 10.5;
height = 200;
} else {
width = $(window).width() / 2.5;
height = 150;
}
// apply to every image files
$('.thumbNailClass').css({
'width': width + 'px',
'height': height + 'px'
});
}
-----------------------------------------------------------------
-----------------------------------------------------------------
하기의 코드가 모든 이미지 사이즈를 크게 키우는 것으로 확인 됨.
class myViewer {
//Set Variables
if(!isMobile.any()) {
// this.width = $(window).width() / 10.5;
// this.height = 200;
} else {
this.width = $(window).width() / 2.5;
this.height = 150;
}
-----------------------------------------------------------------
thumbNailClass를 적용하고 하기의 코드로 변경 적용함.
//Draw Gallery
if(imageFileKeyVals != null) {
if(imageFileKeyVals.length > 0) {
this.drawImageonGallery(imageFileKeyVals);
this.setSizeForElement(this.element);
}
}
};
setSizeForElement(element) {
let width, height;
if(!isMobile.any()) {
width = $(window).width() / 10.5;
height = 200;
} else {
width = $(window).width() / 2.5;
height = 150;
}
// apply to every image files
$('.thumbNailClass').css({
'width': width + 'px',
'height': height + 'px'
});
}
-----------------------------------------------------------------