Fix element positioning

This commit is contained in:
2015-03-03 10:10:00 +01:00
parent 17810c0bb5
commit 196f998c38
26 changed files with 91 additions and 45 deletions
@@ -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}&nbsp;<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}&nbsp;<i>m</i>"
).change()