From be102ae06e8f986bd9d1a544cd2752e5fa94231a Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期二, 11 七月 2023 14:23:51 +0800
Subject: [PATCH] LEX Community Deploy0711

---
 force-app/main/default/staticresources/OpportunityPCLJs.js |   31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/staticresources/OpportunityPCLJs.js b/force-app/main/default/staticresources/OpportunityPCLJs.js
index b6224c6..6533d6e 100644
--- a/force-app/main/default/staticresources/OpportunityPCLJs.js
+++ b/force-app/main/default/staticresources/OpportunityPCLJs.js
@@ -96,7 +96,6 @@
     } else {
         searchOpp();
     }
-    windowResize();
 }
 
 
@@ -156,8 +155,38 @@
     }
 }
 
+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") {
         event.stopPropagation();

--
Gitblit v1.9.1