Ver código fonte

그리드 수평스크롤 체크

isna 2 anos atrás
pai
commit
9d7324de60

+ 1 - 0
src/main/webapp/js/app/config.js

@@ -2127,6 +2127,7 @@ function itp_fn_jqgrid_resize(grid_id, parent_id, size) {
2127 2127
 				$(this).find('td:eq('+cellIndex+')').each(function(){$(this).css('width',cellWidth);});
2128 2128
 		}); 
2129 2129
 	}
2130
+	
2130 2131
 	$(window).on('resize', function(e) {
2131 2132
 		/*na 그리드 수평스크롤 체크 */ 
2132 2133
 		setTimeout(function() {

+ 3 - 2
src/main/webapp/js/app/main.js

@@ -18,10 +18,9 @@ require(['config'], function() {
18 18
 			//$('#ITP_FORM_MAIN_NOTICE_SEARCH_USER_ID').val(fn_make_user_info.get('userId'));
19 19
 			
20 20
 			// 그리드
21
-			itp_fn_jqgrid_resize(MAIN_NOTICE_GRID_ID, MAIN_NOTICE_GRID_LIST, 'lg');
22 21
 			itp_fn_MAIN_NOTICE_grid.init();
23 22
 	    	itp_fn_fire_window_resize();
24
-	
23
+			
25 24
 			// 조회
26 25
 	    	itp_fn_MAIN_NOTICE_search();
27 26
 
@@ -39,6 +38,8 @@ var itp_fn_MAIN_NOTICE_grid = {
39 38
 			itp_MAIN_NOTICE_param.gridSize = $.jgrid.defaults.rowNum;
40 39
 			$(MAIN_NOTICE_GRID_ID).setGridParam({'postData': JSON.stringify(itp_MAIN_NOTICE_param)}).trigger('reloadGrid');
41 40
 		});
41
+		console.log("grid init", MAIN_NOTICE_GRID_LIST);
42
+		itp_fn_jqgrid_resize(MAIN_NOTICE_GRID_ID, MAIN_NOTICE_GRID_LIST, 'lg');
42 43
 	},
43 44
 	callBack: function() {
44 45
 		let param = $('#ITP_FORM_MAIN_NOTICE_SEARCH').serializeObject();

+ 1 - 2
src/main/webapp/js/app/pomng/ITP_POMNG03010.js

@@ -333,9 +333,8 @@ let pageObj = {
333 333
 			
334 334
 		},
335 335
 		grid: function() {
336
-			itp_fn_jqgrid_resize(POMNG03010_GRID_ID, POMNG03010_GRID_LIST, 'lg');
337 336
 			listObj.empty.init();
338
-			itp_fn_fire_window_resize();
337
+			itp_fn_jqgrid_resize(POMNG03010_GRID_ID, POMNG03010_GRID_LIST, 'lg');
339 338
 		},
340 339
 		ready: function() {
341 340
 			listObj.init();

+ 2 - 0
src/main/webapp/js/app/stinfo/ITP_STINFO02010.js

@@ -49,12 +49,14 @@ const gridColModel = {
49 49
 			index: 'STORE_ID', name: 'storeId',
50 50
 			label: ITP_MSG_LOCALE.label.storeId, //매장번호
51 51
 			width: '10', fixed: false, align: 'center',
52
+			minwidth: 400, maxwidth: 500,
52 53
 			sortable: false, hidden: false
53 54
 		},
54 55
 		{
55 56
 			index: 'STORE_NM', name: 'storeNm',
56 57
 			label: ITP_MSG_LOCALE.label.storeNm, //매장명
57 58
 			width: '13', fixed: false, align: 'center',
59
+			minwidth: 400, maxwidth: 500,
58 60
 			sortable: false, hidden: false
59 61
 		},
60 62
 		{