Fix element positioning
This commit is contained in:
@@ -41,11 +41,11 @@ class SvgElementClass
|
||||
@dpm.change(->
|
||||
return unless dpm = $(@).val()
|
||||
if pheight = container.box_height.val()
|
||||
height = Math.round(10 * pheight / dpm)/10
|
||||
height = Math.round(100 * pheight / dpm)/100
|
||||
$('.box_height .attribute-info').html "#{height} <i>m</i>"
|
||||
|
||||
if pwidth = container.box_width.val()
|
||||
width = Math.round(10 * pwidth / dpm)/10
|
||||
width = Math.round(100 * pwidth / dpm)/100
|
||||
$('.box_width .attribute-info').html "#{width} <i>m</i>"
|
||||
|
||||
).change()
|
||||
|
||||
Reference in New Issue
Block a user