Skip to content

Commit

Permalink
Ensure discrete slider respects layout opts (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Mar 12, 2020
1 parent 4fd6223 commit 7e65881
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion panel/widgets/slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ def __init__(self, **params):

self._text = StaticText(margin=(5, 0, 0, 5), style={'white-space': 'nowrap'})
self._slider = None
self._composite = Column(self._text, self._slider)
layout = {p: getattr(self, p) for p in Layoutable.param
if getattr(self, p) is not None}
self._composite = Column(self._text, self._slider, **layout)
self._update_options()
self.param.watch(self._update_options, ['options', 'formatter'])
self.param.watch(self._update_value, ['value'])
Expand Down

0 comments on commit 7e65881

Please sign in to comment.