lib/scarpe/wv/edit_line.rb in scarpe-0.2.1 vs lib/scarpe/wv/edit_line.rb in scarpe-0.2.2
- old
+ new
@@ -28,13 +28,13 @@
HTML.render do |h|
h.input(id: html_id, oninput: oninput, value: @text, style: style)
end
end
- private
+ protected
def style
- styles = {}
+ styles = super
styles[:width] = Dimensions.length(@width) if @width
styles
end