File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Change Log: `yii2-widget-datepicker`
7
7
8
8
- (bug #63 ): Fix extra brace bug in plugin JS code.
9
9
- (enh #64 ): Enhance and improve language & locale validation.
10
+ - (enh #65 ): Enhance styling for INLINE layout.
10
11
11
12
## version 1.3.4
12
13
Original file line number Diff line number Diff line change @@ -250,15 +250,12 @@ protected function validateConfig()
250
250
*/
251
251
protected function renderInput ()
252
252
{
253
+ Html::addCssClass ($ this ->options , 'form-control ' );
253
254
if ($ this ->type == self ::TYPE_INLINE ) {
254
255
if (empty ($ this ->options ['readonly ' ])) {
255
256
$ this ->options ['readonly ' ] = true ;
256
257
}
257
- if (empty ($ this ->options ['class ' ])) {
258
- $ this ->options ['class ' ] = 'form-control input-sm text-center ' ;
259
- }
260
- } else {
261
- Html::addCssClass ($ this ->options , 'form-control ' );
258
+ $ this ->options ['class ' ] .= ' input-sm text-center ' ;
262
259
}
263
260
if (isset ($ this ->form ) && ($ this ->type !== self ::TYPE_RANGE )) {
264
261
$ vars = call_user_func ('get_object_vars ' , $ this );
You can’t perform that action at this time.
0 commit comments