I am trying to build a custom button that could be triggered with keyboard “enter” button.
It seems works well but I could not change the layout, such as height and width of the button.
This is the code.
adding button and height to the style of the button ? It can be that width and height keywords are used, then it does not work if you use width, and height. Just in case, I put width1.
Edit: maybe someone can answer you better, but it you use the width and height of the layout controls, it will not work. The reactive html bypass the bokeh layout engine, then those parameters are not more used. This improve rendering time when the layout of your app is nested, with several components.
Instead of adding a width1 parameter. You can also experiment with setting style="width:100%;height:100%;" or something similar on the button. Alternatively you can try using model.width.
I was playing with d3 a little, and I have several problems with width and the autosizing mode. I will play a little more with this new info and I will post here. I tried with render and after_layout scripts, but when resizing thw window it becomes buggy.
It would be nice if there was one way to implement width and height. And if we could add a description to the docs. But so far it’s always involved a bit of experimentation for me.