Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Maintenance - Mise à jour mensuelle Lundi 6 Février entre 7h00 et 9h00
Open sidebar
genotoul-bioinfo
jflow
Commits
acc24a1b
Commit
acc24a1b
authored
Dec 19, 2016
by
Floreal Cabanettes
Browse files
Move scrollbar to modal dialogs
parent
6cc0899d
Changes
3
Hide whitespace changes
Inline
Side-by-side
docs/example1.html
View file @
acc24a1b
...
...
@@ -187,6 +187,12 @@
<script
src=
'js/jflow-wfform.js'
type=
'text/javascript'
></script>
<script
src=
'js/jflow-wfstatus.js'
type=
'text/javascript'
></script>
<script
src=
"js/bootstrap-datepicker.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
.
body
).
on
(
'
shown.bs.modal
'
,
function
()
{
$
(
this
).
find
(
"
.modal-body
"
).
animate
({
scrollTop
:
0
},
0
);
});
</script>
<script
type=
'text/javascript'
>
...
...
src/css/jflow.css
View file @
acc24a1b
...
...
@@ -308,4 +308,17 @@ background-color:#000000}
100
%
{
background-color
:
#FFFFFF
}
}
/* Important part */
.modal-dialog
{
overflow-y
:
initial
!important
}
.modal-body
{
max-height
:
calc
(
100vh
-
195px
);
overflow-y
:
auto
;
}
body
.modal-open
{
overflow
:
hidden
;
}
\ No newline at end of file
src/js/jflow-wfform.js
View file @
acc24a1b
...
...
@@ -497,7 +497,7 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
data
[
"
content
"
],
'
</div>
'
].
join
(
'
\n
'
);
$this
.
$element
.
prepend
(
alert_message
);
$
(
"
#setAndRunModal
"
).
animate
({
scrollTop
:
0
},
"
slow
"
);
$
(
"
#setAndRunModal
Body
"
).
animate
({
scrollTop
:
0
},
"
slow
"
);
}
}
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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