1 class Pettanr.Views.SpeechBalloon.Element extends Backbone.View
\r
3 className: 'pettanr-comic-balloon'
\r
5 initialize: (options) ->
\r
6 @element = options.element
\r
11 attr = {style: @style()}
\r
12 @balloon = new Pettanr.Views.Balloon.Element({
\r
17 @speech = new Pettanr.Views.Speech.Element({
\r
22 this.$el.attr(@attr)
\r
23 this.$el.html(@img.render().el)
\r
28 width: Pettanr.to_s(@balloon.get('width')) + 'px',
\r
29 height: Pettanr.to_s(@balloon.get('height')) + 'px',
\r
30 top: Pettanr.to_s(@balloon.get('y')) + 'px',
\r
31 left: Pettanr.to_s(@balloon.get('x')) + 'px',
\r
32 'z-index': @element.get('z')
\r