Skip to content

Commit

Permalink
Fix truncation of labels
Browse files Browse the repository at this point in the history
Closes #167
  • Loading branch information
mwcraig committed Nov 3, 2017
1 parent 27bc984 commit 544e3bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 5 additions & 3 deletions reducer/astro_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,17 @@ def __init__(self, *args, **kwd):
super(Combine, self).__init__(*args, **kwd)
self._combine_option = override_str_factory(
widgets.ToggleButtons(description="Combination method:",
options=['Average', 'Median'])
options=['Average', 'Median'],
style={'description_width': 'initial'})
)

self.add_child(self._combine_option)
self._scaling = gui.ToggleContainer(description="Scale before combining?")
scal_desc = "Which property should scale to same value?"
scal_desc = "Which should scale to same value?"
self._scale_by = override_str_factory(
widgets.RadioButtons(description=scal_desc,
options=['mean', 'median'])
options=['mean', 'median'],
style={'description_width': 'initial'})
)
self._scaling.add_child(self._scale_by)
self.add_child(self._scaling)
Expand Down
7 changes: 5 additions & 2 deletions reducer/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,11 @@ class ToggleMinMax(ToggleContainer):
"""
def __init__(self, *args, **kwd):
super(ToggleMinMax, self).__init__(*args, **kwd)
self._min_box = widgets.FloatText(description="Low threshold")
self._max_box = widgets.FloatText(description="High threshold")
style = {'description_width': 'initial'}
self._min_box = widgets.FloatText(description="Low threshold",
style=style)
self._max_box = widgets.FloatText(description="High threshold",
style=style)
self.add_child(self._min_box)
self.add_child(self._max_box)

Expand Down

0 comments on commit 544e3bd

Please sign in to comment.