From 35910c355f74e736e2068a0ffb7f39ae9615d8e1 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 24 五月 2024 16:29:00 +0800
Subject: [PATCH] 1
---
force-app/main/default/staticresources/OpportunityPCLJs.js | 52 +++++++++++++++++++++++++++++++++++++---------------
1 files changed, 37 insertions(+), 15 deletions(-)
diff --git a/force-app/main/default/staticresources/OpportunityPCLJs.js b/force-app/main/default/staticresources/OpportunityPCLJs.js
index 3c06350..6533d6e 100644
--- a/force-app/main/default/staticresources/OpportunityPCLJs.js
+++ b/force-app/main/default/staticresources/OpportunityPCLJs.js
@@ -155,7 +155,37 @@
}
}
+function resizeTable() {
+ blockHeight = j$(window).innerHeight() - j$(escapeVfId('allPage:allForm:searchBlock')).height() - heightAjustment;
+ sbwidth = scrollbarWidth();
+ blockWidth = j$(escapeVfId('allPage:allForm:searchBlock')).width() - j$('div#in_Div_L').width() - widthAjustment - sbwidth;
+ j$(escapeVfId('allPage:allForm:oppBlock')).css('height', blockHeight + 78 + 'px');
+ j$('div#in_Div').css('width', blockWidth + 'px');
+ j$('div#out_Div').css('width', blockWidth + 'px');
+
+
+ var tableWidth = 0;
+ j$('body .pbBody table#tableHeader tr.headerRow td').each(function() {
+ var colClass = getColClassName(this);
+ if (colClass != 'col_Scroll') {
+ var headerCol = j$('body .pbBody table.list tr.headerRow td.' + colClass);
+ tableWidth += headerCol.width();
+ }
+ });
+ j$('table#tableData').css('width', (tableWidth + 20) + 'px');
+ j$('table#tableHeader').css('width', (tableWidth + 20) + 'px');
+
+
+
+ if (j$('table#tableData').height() > j$('div#in_Div').height()) {
+ j$('div#in_Div').css('width', (blockWidth + sbwidth) + 'px');
+ } else {
+ j$('div#out_Div').css('width', (blockWidth + sbwidth) + 'px');
+ j$('div#in_Div').css('width', (blockWidth + sbwidth) + 'px');
+ }
+
+}
function sortTableJs_Account(key) {
if (typeof event.stopPropagation != "undefined") {
@@ -215,24 +245,16 @@
});
windowResize();
// 銈广偗銉兗銉�e嫊
- j$('div#in_Div').scroll(function() {
- j$('div#out_Div').scrollLeft(j$(this).scrollLeft());
- console.log(j$(this).scrollLeft());
- });
j$('div#in_Div').scroll(function() {
+ j$('div#out_Div').scrollLeft(j$(this).scrollLeft());
j$('div#in_Div_L').scrollTop(j$(this).scrollTop());
- console.log(j$(this).scrollTop());
});
- // j$('div#in_Div').scroll(function() {
- // j$('div#out_Div').scrollLeft(j$(this).scrollLeft());
- // j$('div#in_Div_L').scrollTop(j$(this).scrollTop());
- // });
- // j$('div#out_Div').scroll(function() {
- // j$('div#in_Div').scrollLeft(j$(this).scrollLeft());
- // });
- // j$('div#in_Div_L').scroll(function() {
- // j$('div#in_Div').scrollTop(j$(this).scrollTop());
- // });
+ j$('div#out_Div').scroll(function() {
+ j$('div#in_Div').scrollLeft(j$(this).scrollLeft());
+ });
+ j$('div#in_Div_L').scroll(function() {
+ j$('div#in_Div').scrollTop(j$(this).scrollTop());
+ });
}
function windowResize() {
blockHeight = j$(window).innerHeight() - j$(escapeVfId('allPage:allForm:searchBlock')).height() - heightAjustment;
--
Gitblit v1.9.1