##// 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:

r11547:917c213a
r20298:2907e856
Show More
datatypefilter.py
33 lines | 1.2 KiB | text/x-python | PythonLexer
Jonathan Frederic
Fixed all broken references, refactored some stuff here and there,...
r10624 """Filter used to select the first preferred output format available.
Jonathan Frederic
Transformer refactor
r10436
The filter contained in the file allows the converter templates to select
the output format that is most valuable to the active export format. The
value of the different formats is set via
Jonathan Frederic
Rename GlobalConfigurable to NbConvertBase
r11419 NbConvertBase.display_data_priority
Jonathan Frederic
Transformer refactor
r10436 """
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Classes and functions
#-----------------------------------------------------------------------------
Jonathan Frederic
Fixed spacing
r10691
Jonathan Frederic
Rename utils.config to utils.base
r11420 from ..utils.base import NbConvertBase
Matthias BUSSONNIER
restore globalconfigurable
r10859
Brian E. Granger
Fixing import logic.
r11088 __all__ = ['DataTypeFilter']
Jonathan Frederic
Rename GlobalConfigurable to NbConvertBase
r11419 class DataTypeFilter(NbConvertBase):
Jonathan Frederic
Fixed all broken references, refactored some stuff here and there,...
r10624 """ Returns the preferred display format """
Jonathan Frederic
Fixes for Py3.3
r11547
Jonathan Frederic
Transformer refactor
r10436 def __call__(self, output):
""" Return the first available format in the priority """
for fmt in self.display_data_priority:
if fmt in output:
return [fmt]
Matthias BUSSONNIER
restore globalconfigurable
r10859 return []