File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
/* Spinner
2
2
----------------------------------*/
3
3
.ui-spinner { position : relative; display : inline-block; overflow : hidden; padding : 0 ; vertical-align : middle; height : 1.8em ; }
4
- .ui-spinner-input { border : none; background : none; padding : 0 ; margin : .2em 0 ; vertical-align : middle; float : left; margin-left : .4em ; margin-right : 22px ; }
4
+ .ui-spinner-input { border : none; background : none; padding : 0 ; margin : .2em 0 ; vertical-align : middle; margin-left : .4em ; margin-right : 22px ; }
5
5
.ui-spinner-button { width : 16px ; height : 50% ; font-size : .5em ; padding : 0 ; margin : 0 ; z-index : 100 ; text-align : center; vertical-align : middle; position : absolute; cursor : default; display : block; overflow : hidden; right : 0 ; }
6
6
.ui-spinner a .ui-spinner-button { border-top : none; border-bottom : none; border-right : none; } /* more specificity required here to overide default borders */
7
7
.ui-spinner .ui-icon { position : absolute; margin-top : -8px ; top : 50% ; left : 0 ; } /* vertical centre icon */
8
8
.ui-spinner-up { top : 0 ; }
9
9
.ui-spinner-down { bottom : 0 ; }
10
10
11
11
/* TR overrides */
12
- div .ui-spinner { background : none; }
12
+ span .ui-spinner { background : none; }
Original file line number Diff line number Diff line change @@ -70,12 +70,6 @@ $.widget('ui.spinner', {
70
70
self . hovered = false ;
71
71
} ) ;
72
72
73
- // TODO: move to theme, ask FG how
74
- // fix inline-block issues for IE. Since IE8 supports inline-block we need to exclude it.
75
- if ( ! $ . support . opacity && uiSpinner . css ( 'display' ) == 'inline-block' && $ . browser . version < 8 ) {
76
- uiSpinner . css ( 'display' , 'inline' ) ;
77
- }
78
-
79
73
this . element
80
74
. bind ( 'keydown.spinner' , function ( event ) {
81
75
if ( self . options . disabled ) {
@@ -206,7 +200,7 @@ $.widget('ui.spinner', {
206
200
} ,
207
201
208
202
_uiSpinnerHtml : function ( ) {
209
- return '<div role="spinbutton" class="ui-spinner ui-state-default ui-widget ui-widget-content ui-corner-all"></div >' ;
203
+ return '<span role="spinbutton" class="ui-spinner ui-state-default ui-widget ui-widget-content ui-corner-all"></span >' ;
210
204
} ,
211
205
212
206
_buttonHtml : function ( ) {
You can’t perform that action at this time.
0 commit comments