Skip to content

Commit

Permalink
Fixed spinner layout in Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 2, 2019
1 parent 36ec88b commit 1108649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions panel/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,15 @@ 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.
"""

sizing_mode = param.Parameter(default='stretch_height', readonly=True)


class HSpacer(Reactive):
class HSpacer(Spacer):
"""
Spacer which automatically fills all available horizontal space.
"""
Expand Down
4 changes: 2 additions & 2 deletions panel/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 1108649

Please sign in to comment.