Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
b2fa2769
Commit
b2fa2769
authored
Oct 05, 2018
by
Mathieu Giraud
Committed by
Vidjil
Oct 05, 2018
Browse files
stats_decorator.py: hack for full height genescan, even when no bar is to 100%
parent
5d3374aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/models/stats_decorator.py
View file @
b2fa2769
...
...
@@ -53,6 +53,10 @@ class LabeledBarChartDecorator(BarChartDecorator):
style
+=
";min-height: 1px"
bar_span
=
SPAN
(
_style
=
style
,
_title
=
"%s"
%
t
[
0
],
_class
=
"bar"
)
bars
.
append
(
bar_span
)
# Last bar, to have a full height
bars
.
append
(
SPAN
(
_style
=
"height: 100%; visibility: hidden;"
,
_class
=
"bar"
))
return
DIV
(
*
bars
,
_class
=
"bar_chart"
)
class
GenescanDecorator
(
LabeledBarChartDecorator
):
...
...
Mathieu Giraud
@magiraud
mentioned in issue
#3527 (closed)
·
Oct 05, 2018
mentioned in issue
#3527 (closed)
mentioned in issue #3527
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment