You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2019/08/28 06:45:03 UTC
[myfaces-tobago] 08/12: dropdownAutoWidth = true
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 c3b5467c2317c781f93387c79bebfcace589a6ad
Author: Volker Weber <v....@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());