OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add: license publisher
[pettanr/pettanr.git]
/
app
/
models
/
speech.rb
diff --git
a/app/models/speech.rb
b/app/models/speech.rb
index
afdc511
..
24cb701
100644
(file)
--- a/
app/models/speech.rb
+++ b/
app/models/speech.rb
@@
-40,8
+40,8
@@
class Speech < Peta::Element
def outer_style
{
- 'top' => self.y
, 'left' => self.x
,
- 'width' => self.width
, 'height' => self.height
+ 'top' => self.y
.to_s + '%', 'left' => self.x.to_s + '%'
,
+ 'width' => self.width
.to_s + '%', 'height' => self.height.to_s + '%'
}
end