bug 51943
This commit is contained in:
parent
6e3f767882
commit
3f2f19fd06
|
@ -89,7 +89,7 @@ define([
|
||||||
'<% _.each(items, function(item) { %>',
|
'<% _.each(items, function(item) { %>',
|
||||||
'<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem">',
|
'<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem">',
|
||||||
'<span><%= item.displayValue %></span>',
|
'<span><%= item.displayValue %></span>',
|
||||||
'<span style="float: right;">',
|
'<span class="border-line">',
|
||||||
'<svg class="img-border-size" style="height: <%= Math.ceil(item.pxValue) %>px; margin-top: -<%= Math.ceil(item.pxValue)/2 %>px">',
|
'<svg class="img-border-size" style="height: <%= Math.ceil(item.pxValue) %>px; margin-top: -<%= Math.ceil(item.pxValue)/2 %>px">',
|
||||||
'<use xlink:href="#<%= item.imgId %>"></use>',
|
'<use xlink:href="#<%= item.imgId %>"></use>',
|
||||||
'</svg>',
|
'</svg>',
|
||||||
|
@ -200,7 +200,7 @@ define([
|
||||||
'<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem">',
|
'<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem">',
|
||||||
'<span><%= item.displayValue %>' + '</span>',
|
'<span><%= item.displayValue %>' + '</span>',
|
||||||
'<% if (item.imgId!==undefined) { %>',
|
'<% if (item.imgId!==undefined) { %>',
|
||||||
'<span style="float: right;">',
|
'<span class="border-line">',
|
||||||
'<svg class="img-border-size" style="height: <%= Math.ceil(item.pxValue) %>px; margin-top: -<%= (Math.ceil(item.pxValue)/2) %>px">',
|
'<svg class="img-border-size" style="height: <%= Math.ceil(item.pxValue) %>px; margin-top: -<%= (Math.ceil(item.pxValue)/2) %>px">',
|
||||||
'<use xlink:href="#<%= item.imgId %>"></use>',
|
'<use xlink:href="#<%= item.imgId %>"></use>',
|
||||||
'</svg>',
|
'</svg>',
|
||||||
|
|
|
@ -37,6 +37,11 @@
|
||||||
display: block;
|
display: block;
|
||||||
top:50%;
|
top:50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.border-line{
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
.img-line {
|
.img-line {
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
Loading…
Reference in a new issue