diff --git a/panel/layout.py b/panel/layout.py index d0c92558411..958e9b3ded8 100644 --- a/panel/layout.py +++ b/panel/layout.py @@ -340,7 +340,7 @@ def _get_model(self, doc, root=None, parent=None, comm=None): return model -class VSpacer(Reactive): +class VSpacer(Spacer): """ Spacer which automatically fills all available vertical space. """ @@ -348,7 +348,7 @@ class VSpacer(Reactive): sizing_mode = param.Parameter(default='stretch_height', readonly=True) -class HSpacer(Reactive): +class HSpacer(Spacer): """ Spacer which automatically fills all available horizontal space. """ diff --git a/panel/pipeline.py b/panel/pipeline.py index f40b45d904e..f9051b18688 100644 --- a/panel/pipeline.py +++ b/panel/pipeline.py @@ -6,7 +6,7 @@ import numpy as np from .holoviews import HoloViews -from .layout import Row, Column, Spacer +from .layout import Row, Column, HSpacer, VSpacer from .pane import Markdown, Pane from .param import Param from .util import param_reprs @@ -49,7 +49,7 @@ def __init__(self, stages=[], **params): prev_button.layout[0].disabled = True self._progress_bar = Row(self._make_progress, prev_button, next_button) spinner = Pane(os.path.join(os.path.dirname(__file__), 'assets', 'spinner.gif')) - self._spinner_layout = Row(Spacer(width=300), Column(Spacer(height=200), spinner)) + self._spinner_layout = Row(HSpacer(), Column(VSpacer(), spinner, VSpacer()), HSpacer()) stage_layout = Row() if len(stages): stage_layout.append(self._init_stage())