Improve clarity around how to get total size of the chat window

As a Roblox developer unfamiliar with the new chat API, I would like to see a code example included on both ChatWindowConfiguration and ChatInputBarConfiguration on how to calculate the actual height of the chat window.

Before I came across ChatInputBarConfiguration exists I was convinced the absolute size of the chat window was broken. But after adding up absolute sizes + positions from both instances I was able to get the real height. Feels like this should be mentioned somewhere on the docs.

9 Likes

Don’t mean to bump a really old thread, but iirc this behavior still doesn’t exist? Specifically to get the padding between two elements. Having to do this seems a bit hacky. If anyone has a clean solution I’d love to know!

are you trying to get the bottom edge of the chat window?

you can identify the last element (for example if chat input bar is the last element ), you can just use its AbsolutePosition.Y + AbsoluteSize.Y to get its bottom edge y position