From 71b93327e8f3fb3bffffc7c033c1f782e7b6ab32 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期一, 22 五月 2023 17:37:16 +0800
Subject: [PATCH] test

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

diff --git a/force-app/main/default/staticresources/OpportunityPCLJs.js b/force-app/main/default/staticresources/OpportunityPCLJs.js
index b6224c6..d89c9e1 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,7 +155,18 @@
     }
 }
 
-
+function resizeTable() {
+    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');
+}
 
 function sortTableJs_Account(key) {
     if (typeof event.stopPropagation != "undefined") {

--
Gitblit v1.9.1