Commit 893393f8 by Kim Eunchul

#44346 【Check Win 1.4.0_2】縦画面で「カテゴリ」を表示すると、カテゴリ表示が欠ける

parent 9b3a8d07
......@@ -45,7 +45,6 @@ CHK.pushMessage; //コミュニケーションデータ
var scanResultCode; //スキャンしたRFID,バーコード
var pageLang; // ページ設定言語
var isSetCategory = true
var CATEGORY_HEIGHT; //カテゴリー描画用固定値(高さ)
var msgMap = { // velocity?
all:{ja:"全て", ko:"전체", en:"All"},
......@@ -425,14 +424,6 @@ CHK.initReportApp = function (callback) {
//作業一覧描画
CHK.createOperationList(CHK.operation.operationList);
//カテゴリー高さ固定
if(isSetCategory){
CATEGORY_HEIGHT = $('footer').offset().top - $('#category-menu').offset().top;
console.log(CATEGORY_HEIGHT);
isSetCategory = false
}
$("#category-menu").css("overflow", "scroll");
$('#category-menu').height(CATEGORY_HEIGHT - 16);
$('#overlayDiv').height(CATEGORY_HEIGHT);
});
// カテゴリーJSONデータ
......@@ -451,6 +442,10 @@ CHK.initReportApp = function (callback) {
CHK.loadJson(CHK.jsonPath.pushMessageList, function (json) {
});
//カテゴリー高さ固定
setTimeout(function(){
CHK.setCategoryHeight();
}, 500);
}
/**
......@@ -458,12 +453,10 @@ CHK.initReportApp = function (callback) {
*/
CHK.setCategoryHeight = function() {
//カテゴリー高さ固定
if(isSetCategory){
CATEGORY_HEIGHT = $('main').height();
CATEGORY_HEIGHT = $('footer').offset().top - $('#category-menu').offset().top;
console.log(CATEGORY_HEIGHT);
isSetCategory = false
}
$('#category-menu').height(CATEGORY_HEIGHT);
$("#category-menu").css("overflow", "scroll");
$('#category-menu').height(CATEGORY_HEIGHT - 16);
$('#overlayDiv').height(CATEGORY_HEIGHT);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment