mirror of
https://github.com/wassname/angular-timezone-selector.git
synced 2026-09-09 11:17:06 +08:00
Added width to container
This commit is contained in:
Vendored
+4
-2
@@ -33,7 +33,7 @@ angular.module('angular-timezone-selector', [])
|
|||||||
.directive('timezoneSelect', ['_', 'timezones', 'zoneToCC', 'CCToCountryName', function (_, timezones, zoneToCC, CCToCountryName) {
|
.directive('timezoneSelect', ['_', 'timezones', 'zoneToCC', 'CCToCountryName', function (_, timezones, zoneToCC, CCToCountryName) {
|
||||||
return {
|
return {
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
template: '<select></select>',
|
template: '<select style="min-width:300px;"></select>',
|
||||||
replace: true,
|
replace: true,
|
||||||
link: function (scope, elem, attrs) {
|
link: function (scope, elem, attrs) {
|
||||||
var data = []
|
var data = []
|
||||||
@@ -76,7 +76,9 @@ angular.module('angular-timezone-selector', [])
|
|||||||
elem.append($optgroup)
|
elem.append($optgroup)
|
||||||
})
|
})
|
||||||
|
|
||||||
elem.chosen()
|
elem.chosen({
|
||||||
|
width: '300px'
|
||||||
|
})
|
||||||
|
|
||||||
// elem.select2({
|
// elem.select2({
|
||||||
// data: data,
|
// data: data,
|
||||||
|
|||||||
Vendored
+4
-2
@@ -33,7 +33,7 @@ angular.module('angular-timezone-selector', [])
|
|||||||
.directive('timezoneSelect', ['_', 'timezones', 'zoneToCC', 'CCToCountryName', function (_, timezones, zoneToCC, CCToCountryName) {
|
.directive('timezoneSelect', ['_', 'timezones', 'zoneToCC', 'CCToCountryName', function (_, timezones, zoneToCC, CCToCountryName) {
|
||||||
return {
|
return {
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
template: '<select></select>',
|
template: '<select style="min-width:300px;"></select>',
|
||||||
replace: true,
|
replace: true,
|
||||||
link: function (scope, elem, attrs) {
|
link: function (scope, elem, attrs) {
|
||||||
var data = []
|
var data = []
|
||||||
@@ -76,7 +76,9 @@ angular.module('angular-timezone-selector', [])
|
|||||||
elem.append($optgroup)
|
elem.append($optgroup)
|
||||||
})
|
})
|
||||||
|
|
||||||
elem.chosen()
|
elem.chosen({
|
||||||
|
width: '300px'
|
||||||
|
})
|
||||||
|
|
||||||
// elem.select2({
|
// elem.select2({
|
||||||
// data: data,
|
// data: data,
|
||||||
|
|||||||
Reference in New Issue
Block a user