This demo shows how the eframe window size fit content works.
Inspired by How to dynamically resize eframe window? #4329
Automatically set initial window size to fit contents #2858
It seems use egui::Window
and egui::CentralPanel
render content with different wrap boundary.
If you have any ideas, please let me know. Create an issue, a pull request or a discussion. Thanks!