Skip to content

Commit

Permalink
bug: set fixed height on info label (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu authored Jun 16, 2024
1 parent 5e2c605 commit 4e0c5fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ndv/viewer/_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,18 @@ def __init__(
btns.addWidget(self._ndims_btn)
btns.addWidget(self._set_range_btn)

info = QHBoxLayout()
info_widget = QWidget()
info = QHBoxLayout(info_widget)
info.setContentsMargins(0, 0, 0, 2)
info.setSpacing(0)
info.addWidget(self._data_info_label)
info.addWidget(self._progress_spinner)
info_widget.setFixedHeight(16)

layout = QVBoxLayout(self)
layout.setSpacing(2)
layout.setContentsMargins(6, 6, 6, 6)
layout.addLayout(info)
layout.addWidget(info_widget)
layout.addWidget(self._canvas.qwidget(), 1)
layout.addWidget(self._hover_info_label)
layout.addWidget(self._dims_sliders)
Expand Down

0 comments on commit 4e0c5fe

Please sign in to comment.