sugarcube 0.18.3 → 0.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sugarcube/symbol.rb +7 -1
- data/lib/sugarcube/version.rb +1 -1
- metadata +1 -1
data/lib/sugarcube/symbol.rb
CHANGED
|
@@ -290,9 +290,13 @@ class Symbol
|
|
|
290
290
|
left: UIViewContentModeLeft,
|
|
291
291
|
right: UIViewContentModeRight,
|
|
292
292
|
topleft: UIViewContentModeTopLeft,
|
|
293
|
+
top_left: UIViewContentModeTopLeft,
|
|
293
294
|
topright: UIViewContentModeTopRight,
|
|
295
|
+
top_right: UIViewContentModeTopRight,
|
|
294
296
|
bottomleft: UIViewContentModeBottomLeft,
|
|
297
|
+
bottom_left: UIViewContentModeBottomLeft,
|
|
295
298
|
bottomright: UIViewContentModeBottomRight,
|
|
299
|
+
bottom_right: UIViewContentModeBottomRight,
|
|
296
300
|
}
|
|
297
301
|
|
|
298
302
|
@tableview_styles = {
|
|
@@ -682,7 +686,9 @@ class Symbol
|
|
|
682
686
|
return font.uifont(size)
|
|
683
687
|
end
|
|
684
688
|
else
|
|
685
|
-
|
|
689
|
+
if size.is_a?(Symbol)
|
|
690
|
+
size = size.uifontsize
|
|
691
|
+
end
|
|
686
692
|
return UIFont.systemFontOfSize(size)
|
|
687
693
|
end
|
|
688
694
|
end
|
data/lib/sugarcube/version.rb
CHANGED