projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 13823-bionic
[arvados.git]
/
apps
/
workbench
/
app
/
views
/
application
/
_svg_div.html.erb
diff --git
a/apps/workbench/app/views/application/_svg_div.html.erb
b/apps/workbench/app/views/application/_svg_div.html.erb
index ddc8e6196037823a9843876e14f9e4bf74f8e325..8a417d9e0ea3ad7e6af3df3cd74e81daa9c034ea 100644
(file)
--- a/
apps/workbench/app/views/application/_svg_div.html.erb
+++ b/
apps/workbench/app/views/application/_svg_div.html.erb
@@
-1,3
+1,7
@@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
<%= content_for :css do %>
/* Need separate style for each instance of svg div because javascript will manipulate the properties. */
#<%= divId %> {
<%= content_for :css do %>
/* Need separate style for each instance of svg div because javascript will manipulate the properties. */
#<%= divId %> {
@@
-7,7
+11,8
@@
border-width: 1px;
border-color: gray;
position: absolute;
border-width: 1px;
border-color: gray;
position: absolute;
- left: 1px;
+ left: 25px;
+ right: 25px;
}
path:hover {
stroke-width: 5;
}
path:hover {
stroke-width: 5;
@@
-19,21
+24,18
@@
stroke-linecap: round;
<%= content_for :js do %>
$(window).on('load', function() {
<%= content_for :js do %>
$(window).on('load', function() {
- var fn = function () { graph_zoom("<%= divId %>", "<%=svgId %>", 1) };
- $(window).on('resize', fn);
- $(window).on('scroll', fn);
+ $(window).on('load resize scroll', function () { graph_zoom("<%= divId %>","<%=svgId %>", 1) } );
});
<% end %>
});
<% end %>
-<div id="_<%= divId %>_container"
style="padding-top: 41px; margin-top: -41px"
>
+<div id="_<%= divId %>_container">
<div style="text-align: right">
<div style="text-align: right">
- <a style="cursor: pointer"><span class="icon-zoom-out" onclick="graph_zoom('<%= divId %>', '<%= svgId %>', .9)"></span></a>
- <a style="cursor: pointer"><span class="icon-zoom-in" onclick="graph_zoom('<%= divId %>', '<%= svgId %>', 1./.9)"></span></a>
+ <a style="cursor: pointer"><span class="
glyphicon glyph
icon-zoom-out" onclick="graph_zoom('<%= divId %>', '<%= svgId %>', .9)"></span></a>
+ <a style="cursor: pointer"><span class="
glyphicon glyph
icon-zoom-in" onclick="graph_zoom('<%= divId %>', '<%= svgId %>', 1./.9)"></span></a>
</div>
</div>
- <div id="<%= divId %>">
- <span id="_<%= divId %>_center" style="padding-left:
30
0px"></span>
+ <div id="<%= divId %>"
class="smart-scroll"
>
+ <span id="_<%= divId %>_center" style="padding-left: 0px"></span>
<%= raw(svg) %>
</div>
<%= raw(svg) %>
</div>
- <div id="_<%= divId %>_padding" style="padding-bottom: 1em"></div>
</div>
</div>