myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hno...@apache.org
Subject [myfaces-tobago] branch master updated: TOBAGO-1880 Length of <tc:suggest> inside <tc:sheet> is not the length of the column
Date Tue, 25 Sep 2018 13:03:18 GMT
This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new c5f3abf  TOBAGO-1880 Length of <tc:suggest> inside <tc:sheet> is not
the length of the column
c5f3abf is described below

commit c5f3abffb3ca0c5d9277fc613b214259be152200
Author: Henning Noeth <hnoeth@apache.org>
AuthorDate: Tue Sep 25 15:03:10 2018 +0200

    TOBAGO-1880 Length of <tc:suggest> inside <tc:sheet> is not the length of
the column
    
    * remove resetInputFieldSize() method which was implemented for 2.0.0;
      The width should be set with CSS.
---
 .../standard/tobago-bootstrap/_version/js/tobago-sheet.js   | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-sheet.js
b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-sheet.js
index 2b5f948..df5f018 100644
--- a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-sheet.js
+++ b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-sheet.js
@@ -110,10 +110,6 @@ Tobago.Sheet.prototype.reloadWithAction = function(source, action) {
 
 Tobago.Sheet.setup2 = function (sheets) {
 
-  jQuery(sheets).each(function() {
-    Tobago.Sheet.resetInputFieldSize(jQuery(this));
-  });
-
   // synchronize column widths
   jQuery(sheets).each(function() {
 
@@ -230,7 +226,6 @@ Tobago.Sheet.setup2 = function (sheets) {
         var columnWidth = event.data.originalHeaderColumnWidth + delta;
         event.data.headerColumn.attr("width", columnWidth);
         event.data.bodyColumn.attr("width", columnWidth);
-        Tobago.Sheet.resetInputFieldSize(headerColumn.closest("table"));
         Tobago.clearSelection();
         return false;
       });
@@ -671,14 +666,6 @@ Tobago.Sheet.deselectRow = function($selected, rowIndex, $row, $checkbox)
{
   setTimeout(function() {$checkbox.prop("checked", false);}, 0);
 };
 
-Tobago.Sheet.resetInputFieldSize = function (table) {
-  var span = table.find("td>div>span");
-  span.children("input,select").each(function () {
-    var input = jQuery(this);
-    input.outerWidth(input.parent().width());
-  });
-};
-
 Tobago.Sheet.isInputElement = function($element) {
   return ["INPUT", "TEXTAREA", "SELECT", "A", "BUTTON"].indexOf($element.prop("tagName"))
> -1;
 };


Mime
View raw message