lib/motion-xray/xray_ui.rb in motion-xray-1.0.6 vs lib/motion-xray/xray_ui.rb in motion-xray-1.0.7
- old
+ new
@@ -126,15 +126,15 @@
@table = UITableView.alloc.initWithFrame(CGRect.empty, style: :plain.uitableviewstyle)
@table.frame = [[0, bar_height], [half_screen_width, half_screen_height - bar_height * 2]]
@table.rowHeight = 30
@table.delegate = self
- @table.autoresizingMask = :full.uiautoresizemask
+ @table.autoresizingMask = :fill.uiautoresizemask
@top_half << @table
@top_bar = XrayHeaderBackground.alloc.initWithFrame([[0, 0], [half_screen_width, bar_height]])
- @top_bar.autoresizingMask = :fixed_top.uiautoresizemask
+ @top_bar.autoresizingMask = :fill_top.uiautoresizemask
@top_bar.label = XrayHeaderLabel.alloc.initWithFrame(@top_bar.bounds.right(30).thinner(30))
@top_bar.label.autoresizingMask = :flexible_width.uiautoresizemask
@expand_button = XrayDetailButton.alloc.init
@expand_button.transform = CGAffineTransformMakeRotation(180.degrees)
@@ -158,11 +158,11 @@
@top_half << @top_bar
@bottom_bar = XrayHeaderBackground.alloc.initWithFrame([[0, half_screen_height - bar_height], [half_screen_width, bar_height]])
@bottom_bar.label = XrayHeaderLabel.alloc.initWithFrame(@bottom_bar.bounds.right(3).thinner(33))
@bottom_bar.label.autoresizingMask = :flexible_width.uiautoresizemask
- @bottom_bar.autoresizingMask = :fixed_bottom.uiautoresizemask
+ @bottom_bar.autoresizingMask = :fill_bottom.uiautoresizemask
@top_half << @bottom_bar
@assign_button = XrayDetailButton.alloc.init
@assign_button.transform = CGAffineTransformMakeRotation(90.degrees)
@assign_button.frame = @assign_button.frame.x(half_screen_width - @assign_button.frame.width)
@@ -173,11 +173,11 @@
@bottom_bar << @assign_button
@bottom_half = UIView.alloc.initWithFrame([[0, bottom_half_top], [full_screen_width, bottom_half_height]])
grad_layer = CAGradientLayer.layer
grad_layer.frame = @bottom_half.layer.bounds
- grad_layer.colors = [:white.uicolor.cgcolor, :lightgray.uicolor.cgcolor]
+ grad_layer.colors = [:white.uicolor.cgcolor, :light_gray.uicolor.cgcolor]
@bottom_half.layer << grad_layer
@teh_ui << @bottom_half
@canvas = XrayScrollView.alloc.init
@canvas.frame = [[0, canvas_top], [full_screen_width, canvas_height]]
@@ -321,10 +321,10 @@
end
label = UILabel.alloc.initWithFrame([[5, 5], [0, 0]])
label.backgroundColor = :clear.uicolor
label.textColor = :white.uicolor
- label.textAlignment = :left.uitextalignment
+ label.textAlignment = :left.nstextalignment
container = UIView.alloc.initWithFrame(CGRect.empty)
container.layer.cornerRadius = label.frame.height/2
container.backgroundColor = :black.uicolor(0.5)
container << label