myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject [myfaces-tobago] 08/19: dropdownAutoWidth = true
Date Fri, 29 Nov 2019 15:55:15 GMT
This is an automated email from the ASF dual-hosted git repository.

weber pushed a commit to branch TOBAGO-1999_Select2
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit 29cedbe830f163d60c9997b5f254aa0e0c8a1bb0
Author: Volker Weber <v.weber@inexso.de>
AuthorDate: Mon Aug 26 08:37:09 2019 +0200

    dropdownAutoWidth = true
---
 .../java/org/apache/myfaces/tobago/renderkit/html/Select2Options.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/Select2Options.java
b/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/Select2Options.java
index fabc3d8..f5b045e 100644
--- a/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/Select2Options.java
+++ b/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/Select2Options.java
@@ -30,6 +30,7 @@ public class Select2Options {
   private Boolean tags;
   private String[] tokenSeparators;
   private Boolean allowClear;
+  private Boolean dropdownAutoWidth;
   private String language;
   private String matcher;
   private Integer maximumInputLength;
@@ -43,6 +44,7 @@ public class Select2Options {
   public static Select2Options of(UISelectOneChoice select) {
     Select2Options options = new Select2Options();
     options.renderSelect2 = select.isSelect2();
+    options.dropdownAutoWidth = true;
 
     if (select.isMinimumResultsForSearchSet()) {
       options.setMinimumResultsForSearch(select.getMinimumResultsForSearch());


Mime
View raw message