Skip to content

Commit c7be091

Browse files
AymanJitanmikeblakeney
authored andcommitted
Fix Multiple-Choice Input UI Glitches (#6)
commit 0af81a6 Author: AymanJitan <ayman.jitan@gmail.com> Date: Tue Mar 15 12:32:07 2016 -0400 issue #6 Fix Multiple-Choice Input UI Glitches
1 parent ea96fbd commit c7be091

File tree

7 files changed

+52
-10
lines changed

7 files changed

+52
-10
lines changed

dist/sc-select.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,3 +1197,19 @@ html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
11971197
height: 1px !important;
11981198
position: absolute !important;
11991199
}
1200+
/*
1201+
Fix Multiple-Choice Input
1202+
*/
1203+
sc-select > div.input-group.select2-bootstrap-append {
1204+
z-index: 200;
1205+
}
1206+
sc-select > div.input-group.select2-bootstrap-append > div > ul > li > input {
1207+
width: 100% !important;
1208+
position: absolute;
1209+
}
1210+
sc-select .select2-container-multi .select2-choices {
1211+
min-height: 34px;
1212+
}
1213+
/*
1214+
End Fix Multiple-Choice Input
1215+
*/

dist/sc-select.js

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,21 @@ return /******/ (function(modules) { // webpackBootstrap
7070

7171
__webpack_require__(9);
7272

73-
var _factoriesScSelectParser = __webpack_require__(11);
73+
__webpack_require__(11);
74+
75+
var _factoriesScSelectParser = __webpack_require__(13);
7476

7577
var _factoriesScSelectParser2 = _interopRequireDefault(_factoriesScSelectParser);
7678

77-
var _directivesScSelect = __webpack_require__(12);
79+
var _directivesScSelect = __webpack_require__(14);
7880

7981
var _directivesScSelect2 = _interopRequireDefault(_directivesScSelect);
8082

81-
var _directivesScOptions = __webpack_require__(13);
83+
var _directivesScOptions = __webpack_require__(15);
8284

8385
var _directivesScOptions2 = _interopRequireDefault(_directivesScOptions);
8486

85-
var _directivesScSelectPaginator = __webpack_require__(14);
87+
var _directivesScSelectPaginator = __webpack_require__(16);
8688

8789
var _directivesScSelectPaginator2 = _interopRequireDefault(_directivesScSelectPaginator);
8890

@@ -133,6 +135,13 @@ return /******/ (function(modules) { // webpackBootstrap
133135
/***/ },
134136
/* 10 */,
135137
/* 11 */
138+
/***/ function(module, exports) {
139+
140+
// removed by extract-text-webpack-plugin
141+
142+
/***/ },
143+
/* 12 */,
144+
/* 13 */
136145
/***/ function(module, exports) {
137146

138147
'use strict';
@@ -169,7 +178,7 @@ return /******/ (function(modules) { // webpackBootstrap
169178
module.exports = exports['default'];
170179

171180
/***/ },
172-
/* 12 */
181+
/* 14 */
173182
/***/ function(module, exports, __webpack_require__) {
174183

175184
'use strict';
@@ -402,7 +411,7 @@ return /******/ (function(modules) { // webpackBootstrap
402411
module.exports = exports['default'];
403412

404413
/***/ },
405-
/* 13 */
414+
/* 15 */
406415
/***/ function(module, exports) {
407416

408417
'use strict';
@@ -428,7 +437,7 @@ return /******/ (function(modules) { // webpackBootstrap
428437
module.exports = exports['default'];
429438

430439
/***/ },
431-
/* 14 */
440+
/* 16 */
432441
/***/ function(module, exports, __webpack_require__) {
433442

434443
'use strict';

dist/sc-select.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sc-select.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sc-select.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/module.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import angular from 'angular';
22
import 'select2/select2.css';
33
import 'select2-bootstrap-css/select2-bootstrap.css';
4+
import './stylesheets/sc-select.css';
45
import scSelectParser from './factories/scSelectParser';
56
import scSelect from './directives/scSelect';
67
import scOptions from './directives/scOptions';

src/stylesheets/sc-select.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
Fix Multiple-Choice Input
3+
*/
4+
sc-select > div.input-group.select2-bootstrap-append {
5+
z-index: 200;
6+
}
7+
sc-select > div.input-group.select2-bootstrap-append > div > ul > li > input {
8+
width: 100% !important;
9+
position: absolute;
10+
}
11+
sc-select .select2-container-multi .select2-choices {
12+
min-height: 34px;
13+
}
14+
/*
15+
End Fix Multiple-Choice Input
16+
*/

0 commit comments

Comments
 (0)