How to make a popup that has width proportional to window and height to fit content
⚓ Rust 📅 2026-01-03 👤 surdeus 👁️ 2Suppose you would like to display some word-wrapped text in a block in a popup. How can one setup a layout such that the popup's width is 50% of the window, but the popups height is calculated based on the height of the contents, ie the number of lines in the wrapped text at that particular width? Is such a thing possible?
1 post - 1 participant
🏷️ Rust_feed