lib/fidgit/states/message_dialog.rb in fidgit-0.0.6alpha vs lib/fidgit/states/message_dialog.rb in fidgit-0.1.0
- old
+ new
@@ -40,13 +40,13 @@
super(options)
# Dialog is forced to the centre.
options[:align_h] = options[:align_v] = :center
- pack :vertical, options do
+ vertical options do
text_area(text: message, enabled: false, width: options[:width] - padding_left - padding_right)
- pack :horizontal, align_h: :center do
+ horizontal align_h: :center do
@type.to_s.split('_').each do |type|
button(options[:"#{type}_text"]) do
hide
block.call type.to_sym if block
end
\ No newline at end of file