vendor/assets/src/medias/rubies/examples/table.rb in atome-0.5.3.7.3 vs vendor/assets/src/medias/rubies/examples/table.rb in atome-0.5.3.7.8
- old
+ new
@@ -59,11 +59,11 @@
# m.cell(9).color(:black)
# test = m.cells([23, 26])
# test.color(:blue)
# m.columns(6).data[0..3].color(:white)
-grab(m.id.value).drag({ move: true }) do |e|
+grab(m.id).drag({ move: true }) do |e|
puts e
end
wait 1 do
m.add_columns(3)
m.rows(3) do |el|
@@ -125,10 +125,10 @@
# alert(grab("my_table_9"))
# grab("my_table_9").children .each do |child|
# grab(child).color(:white)
# end
-matrix_ratio=m.height.value/m.width.value
+matrix_ratio=m.height/m.width
# alert prev_size
$window.on :resize do |e|
# m.top(0)
# m.left(0)
# ratio_w=m.width.value/$window.view.width