Skip to content

Commit 948e133

Browse files
committed
Update
1 parent 2a7d255 commit 948e133

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

druid/custom/rich_text/rich_text.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,19 @@ end
264264

265265
---Set the width of the rich text, not affects the size of current spawned words
266266
---@param width number
267+
---@return druid.rich_text self
267268
function M:set_width(width)
268269
self._settings.width = width
270+
return self
269271
end
270272

271273

272274
---Set the height of the rich text, not affects the size of current spawned words
273275
---@param height number
276+
---@return druid.rich_text self
274277
function M:set_height(height)
275278
self._settings.height = height
279+
return self
276280
end
277281

278282

0 commit comments

Comments
 (0)