mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-18 14:02:33 +00:00
Fixed ConfigFile not storing values deeper then one level, added markup_width to Text
This commit is contained in:
@@ -103,6 +103,10 @@ module CyberarmEngine
|
||||
textobject.text_width(text)
|
||||
end
|
||||
|
||||
def markup_width(text = @text)
|
||||
textobject.markup_width(text)
|
||||
end
|
||||
|
||||
def height(text = @text)
|
||||
text.lines.count > 0 ? (text.lines.count) * textobject.height : @textobject.height
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user