Permalink
Browse files

fix small graphie issues in subtracting decimals and close #273

  • Loading branch information...
1 parent e068044 commit ed5a6937d0bd50a71808aed84358745bf0a270e4 @igorT igorT committed Jul 28, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 exercises/subtracting_decimals.html
@@ -46,7 +46,7 @@
<div>
<div class="graphie" id="numbers">
init({
- range: [ [ -1, X_MAX + 1 ], [ -0.5, 4 ] ],
+ range: [ [ -1, X_MAX + 4 ], [ -0.5, 4 ] ],
scale: [30, 45]
});
style({
@@ -77,6 +77,7 @@
oldHighlights.shift().remove();
}
X_MAX = X_MAX + ( B_DECIMAL - A_DECIMAL ) * (A_DECIMAL &lt; B_DECIMAL ? 1 : -1);
+ path( [ [ -0.5, 0.5 ], [ X_MAX + 0.5, 0.5 ] ]);
KhanUtil.currentGraph.highlights[0].push( label( [ X_SIDE, Y_SIDE ], "\\large{\\text{Make sure the decimals are lined up.}}", "right" ) );
drawDigits( A_DIGITS.slice( 0 ).reverse(), X_MAX - A_DIGITS.length + 1, Y_FIRST );
drawDigits( B_DIGITS.slice( 0 ).reverse(), X_MAX - B_DIGITS.length + 1, Y_SECOND );

0 comments on commit ed5a693

Please sign in to comment.