Skip to content

Commit b3d1b51

Browse files
committed
updated setup.py and imgStretch logic change
1 parent cc6f7f2 commit b3d1b51

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plotly/presentation_objs/presentation_objs.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1098,11 +1098,9 @@ def _markdown_to_presentation(self, markdown_string, style, imgStretch):
10981098
height = deep_child['height']
10991099

11001100
if width >= height:
1101-
self['presentation']['slides'][s]['children'][c]['props']['style']['max-width'] = self['presentation']['slides'][s]['children'][c]['props']['style'].pop('width')
1102-
#deep_child['max-width'] = deep_child.pop('width')
1101+
deep_child['max-width'] = deep_child.pop('width')
11031102
else:
1104-
self['presentation']['slides'][s]['children'][c]['props']['style']['max-height'] = self['presentation']['slides'][s]['children'][c]['props']['style'].pop('height')
1105-
#deep_child['max-height'] = deep_child.pop('height')
1103+
deep_child['max-height'] = deep_child.pop('height')
11061104

11071105
def _add_empty_slide(self):
11081106
self['presentation']['slides'].append(

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def readme():
3535
'plotly/api/v1',
3636
'plotly/api/v2',
3737
'plotly/dashboard_objs',
38+
'plotly/presentation_objs',
3839
'plotly/plotly',
3940
'plotly/plotly/chunked_requests',
4041
'plotly/figure_factory',

0 commit comments

Comments
 (0)