jmosbacher / pydantic-panel

Edit pydantic models with widgets from the awesome Panel package
MIT License
24 stars 3 forks source link

Add sizing inference #1

Open jmosbacher opened 2 years ago

jmosbacher commented 2 years ago

Parent widgets should infer the size settings to pass to their children. eg if the height of a model widget is set, it should divide that height between its children widgets and set their height respectively. This would require some effort since not all widgets are created equally so we would have to have some weighting algorithm where each widgets gets some weight based on its "natural" size. Need to dig deeper into panel and bokeh internals and see how they implemented this.