lib/sugarcube/symbol.rb in sugarcube-0.18.3 vs lib/sugarcube/symbol.rb in sugarcube-0.18.4
- old
+ new
@@ -288,13 +288,17 @@
top: UIViewContentModeTop,
bottom: UIViewContentModeBottom,
left: UIViewContentModeLeft,
right: UIViewContentModeRight,
topleft: UIViewContentModeTopLeft,
+ top_left: UIViewContentModeTopLeft,
topright: UIViewContentModeTopRight,
+ top_right: UIViewContentModeTopRight,
bottomleft: UIViewContentModeBottomLeft,
+ bottom_left: UIViewContentModeBottomLeft,
bottomright: UIViewContentModeBottomRight,
+ bottom_right: UIViewContentModeBottomRight,
}
@tableview_styles = {
plain: UITableViewStylePlain,
grouped: UITableViewStyleGrouped,
@@ -680,10 +684,12 @@
return UIFont.send(font, size)
else
return font.uifont(size)
end
else
- size = size.uifontsize
+ if size.is_a?(Symbol)
+ size = size.uifontsize
+ end
return UIFont.systemFontOfSize(size)
end
end
def uifontsize