PyWebIO icon indicating copy to clipboard operation
PyWebIO copied to clipboard

output_max_width not implemented in set_env

Open XPbIM3 opened this issue 4 years ago • 3 comments

Documentation for version 1.3.* describes set_env function including "output_max_width" parameter. But setting this parameter leads to assertion violation:

assert all(k in ('title', 'output_animation', 'auto_scroll_bottom', 'http_pull_interval', 'input_panel_min_height', 'input_panel_init_height', 'input_panel_fixed', 'input_auto_focus') for k in env_info.keys())

XPbIM3 avatar Aug 18 '21 07:08 XPbIM3

okay, this feature seems to be in development branch...

XPbIM3 avatar Aug 18 '21 10:08 XPbIM3

okay , I have a version supporting "output_max_width" And I am trying to put a relativly wide table on screen, and even with output_max_width=90%. or 1080px gives no sense - table is presented really narrow with scroll bar. I also tried a layouts with width= set, and it did worked, but center alignment of table is ruined then.

XPbIM3 avatar Aug 18 '21 11:08 XPbIM3

Try add pywebio.session.run_js("""$('head').append()""") before you put_table.

wang0618 avatar Aug 18 '21 12:08 wang0618