File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ var gulp = require('gulp'),
17
17
18
18
var Server = require ( "karma" ) . Server ;
19
19
20
- var libraryVersion = "0.9.10 " ;
20
+ var libraryVersion = "0.9.11 " ;
21
21
22
22
var paths = {
23
23
webroot : "./" + project . webroot + "/" ,
Original file line number Diff line number Diff line change @@ -34,8 +34,7 @@ module Survey {
34
34
var counter = 0 ;
35
35
for ( var i = 0 ; i < this . questions . length ; i ++ )
36
36
if ( this . questions [ i ] . visible ) {
37
- var delta = counter > 0 && counter == visCount - 1 ? 1 : 0 ;
38
- this . questions [ i ] . renderWidth = this . question . width ? this . question . width : ( Math . floor ( 100 / visCount ) - delta ) + '%' ;
37
+ this . questions [ i ] . renderWidth = this . question . width ? this . question . width : Math . floor ( 100 / visCount ) + '%' ;
39
38
this . questions [ i ] . rightIndent = counter < visCount - 1 ? 1 : 0 ;
40
39
counter ++ ;
41
40
}
Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ module Survey.Tests {
545
545
if ( i % 2 == 0 ) {
546
546
assert . equal ( page . rows [ i ] . questions [ 0 ] . renderWidth , "50%" , "the render width is 50%" ) ;
547
547
assert . equal ( page . rows [ i ] . questions [ 0 ] . rightIndent , 1 , "the indent is 1" ) ;
548
- assert . equal ( page . rows [ i ] . questions [ 1 ] . renderWidth , "49 %" , "the render width is 50%" ) ;
548
+ assert . equal ( page . rows [ i ] . questions [ 1 ] . renderWidth , "50 %" , "the render width is 50%" ) ;
549
549
assert . equal ( page . rows [ i ] . questions [ 1 ] . rightIndent , 0 , "the indent is 0" ) ;
550
550
}
551
551
}
You can’t perform that action at this time.
0 commit comments