From 63d531a9c0ab51f05327492a56f3245777762b45 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Sun, 3 Jan 2016 18:57:49 -0500 Subject: [PATCH] Fixed responsive example in documentation This fixes the documentation so the responsive example actually works. Everything was working properly, the example just wasn't updated when the default for the width was changed to `100%` in https://github.com/select2/select2/commit/5fd72d205253b6bac2db113cd6b9a0f8691f234e. This is a change from the old `resolve` width setting, which is responsible for parsing the style attribute and getting the width that was set. This closes https://github.com/select2/select2/issues/4050 --- docs/examples.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/examples.html b/docs/examples.html index e6f60361..aeb329ba 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -201,7 +201,9 @@ slug: examples $(".js-example-disabled").select2(); $(".js-example-disabled-multi").select2(); - $(".js-example-responsive").select2(); + $(".js-example-responsive").select2({ + width: 'resolve' // need to override the changed default + }); $disabledResults.select2();