Преглед на файлове

Revert "applied fix for #1172 - Clear button overlaps text"

This reverts commit fd07c11484caf2f515f17edfbb576b2b28f2366f.
Igor Vaynberg преди 12 години
родител
ревизия
25549c787b
променени са 2 файла, в които са добавени 3 реда и са изтрити 9 реда
  1. 3 7
      select2.css
  2. 0 2
      select2.js

+ 3 - 7
select2.css

@@ -81,10 +81,6 @@ Version: @@ver@@ Timestamp: @@timestamp@@
     background-image: linear-gradient(top, #eeeeee 0%,#ffffff 90%);
 }
 
-.select2-container.select2-allowclear .select2-choice span {
-    margin-right: 42px;
-}
-
 .select2-container .select2-choice span {
     margin-right: 26px;
     display: block;
@@ -98,11 +94,11 @@ Version: @@ver@@ Timestamp: @@timestamp@@
 }
 
 .select2-container .select2-choice abbr {
-    display: inline-block;
+    display: block;
     width: 12px;
     height: 12px;
     position: absolute;
-    right: 24px;
+    right: 26px;
     top: 8px;
 
     font-size: 1px;
@@ -175,7 +171,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@
 }
 
 .select2-container .select2-choice div {
-    display: inline-block;
+    display: block;
     width: 18px;
     height: 100%;
     position: absolute;

+ 0 - 2
select2.js

@@ -1944,7 +1944,6 @@ the specific language governing permissions and limitations under the Apache Lic
 
                 this.selection.addClass("select2-default");
 
-                this.container.removeClass("select2-allowclear");
                 this.selection.find("abbr").hide();
             }
         },
@@ -2023,7 +2022,6 @@ the specific language governing permissions and limitations under the Apache Lic
             this.selection.removeClass("select2-default");
 
             if (this.opts.allowClear && this.getPlaceholder() !== undefined) {
-                this.container.addClass("select2-allowclear");
                 this.selection.find("abbr").show();
             }
         },