Skip to content

Commit

Permalink
CSS fix for the progress bars
Browse files Browse the repository at this point in the history
  • Loading branch information
sz3 committed Apr 4, 2020
1 parent 0f6cb5b commit ba9f0f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion pogui/pogui.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def _backgroundProgress(self, status_iter, progress_id, dest_path=None):
for info in status_iter:
# need to snapshot these better
percent = info['current'] * 100 / info['total']
print('giving {} to window'.format(info))
window.evaluate_js("ProgressBar.update('{}', '{:.2f}%');".format(progress_id, percent))

if dest_path:
Expand Down
6 changes: 4 additions & 2 deletions pogui/web/loading/progress-bar.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.progress-bars {
min-height: 2.4em;
margin-bottom: -2.4em;
min-height: 1.5em;
margin-bottom: -1.5em;
position: sticky;
top: 0;
z-index: 3;
}

.progress-bar .bar {
Expand Down

0 comments on commit ba9f0f9

Please sign in to comment.