##// END OF EJS Templates
Reverse hscrollbar min-height hack on OS X...
Reverse hscrollbar min-height hack on OS X OS X has optional behavior to only draw scrollbars during scroll, which causes problems for CodeMirror's scrollbars. CodeMirror's solution is to set a minimum size for their scrollbars, which is always present. The trade is that the container overlays most of the last line, swallowing click events when there is scrolling to do, even when no scrollbar is visible. This reverses the trade, recovering the click events at the expense of never showing the horizontal scrollbar on OS X when this option is enabled.

File last commit:

r19176:f48e011c
r20298:2907e856
Show More
widget_float.js
34 lines | 1.0 KiB | application/javascript | JavascriptLexer
Jonathan Frederic
Almost done!...
r17198 // Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
Jonathan Frederic
Move js *RangeWidget code into *Widget
r14672
Jonathan Frederic
Almost done!...
r17198 define([
"widgets/js/widget",
"widgets/js/widget_int",
], function(widget, int_widgets){
var IntSliderView = int_widgets.IntSliderView;
var IntTextView = int_widgets.IntTextView;
Jonathan Frederic
Move js *RangeWidget code into *Widget
r14672
Jonathan Frederic
Float widget views now inherit from int counterparts
r14694 var FloatSliderView = IntSliderView.extend({
Gordon Ball
Change _parse_text_input to _parse_value and update float range regex
r17957 _parse_value: parseFloat,
Gordon Ball
Add support for parsing pairs of numbers for range sliders
r17956
Gordon Ball
Change _parse_text_input to _parse_value and update float range regex
r17957 // matches: whitespace?, float, whitespace?, [-:], whitespace?, float
_range_regex: /^\s*([+-]?(?:\d*\.?\d+|\d+\.)(?:[eE][+-]?\d+)?)\s*[-:]\s*([+-]?(?:\d*\.?\d+|\d+\.)(?:[eE][+-]?\d+)?)/,
Gordon Ball
Add support to the float slider
r17953
Jonathan Frederic
Float widget views now inherit from int counterparts
r14694 _validate_slide_value: function(x) {
Jonathan Frederic
Ran function comment conversion tool
r19176 /**
* Validate the value of the slider before sending it to the back-end
* and applying it to the other views on the page.
*/
Jonathan Frederic
Float widget views now inherit from int counterparts
r14694 return x;
Jonathan Frederic
Move js *RangeWidget code into *Widget
r14672 },
});
MinRK
quick review pass on javascript
r14792 var FloatTextView = IntTextView.extend({
Gordon Ball
Change _parse_text_input to _parse_value and update float range regex
r17957 _parse_value: parseFloat
Jonathan Frederic
Move js *RangeWidget code into *Widget
r14672 });
Jonathan Frederic
Almost done!...
r17198
return {
'FloatSliderView': FloatSliderView,
'FloatTextView': FloatTextView,
};
Jonathan Frederic
Move js *RangeWidget code into *Widget
r14672 });