Skip to content
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.

Commit

Permalink
a workaround for #21 and #31
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtk75 committed Jan 22, 2015
1 parent 5317216 commit 6d6e17c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/js/SequenceDiagramLayout.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ SequenceDiagramLayout::_layout = ->

objs = @diagram.find(".participant")
l = utils.min objs, (e)-> $(e).offset().left
r = utils.max objs, (e)-> $(e).offset().left + $(e).outerWidth() - 1
r = utils.max objs, (e)->
e = $(e)
a = e.css("box-shadow").match /[0-9]+px/g
hblur = parseInt(a[2])
e.offset().left + e.outerWidth() - 1 + hblur
@diagram.width r - l + 1

HTMLElementLayout = require "HTMLElementLayout.coffee"
Expand Down

0 comments on commit 6d6e17c

Please sign in to comment.