panel icon indicating copy to clipboard operation
panel copied to clipboard

MultiSelect side scrolling

Open ahuang11 opened this issue 6 years ago • 3 comments

Maybe a bokeh feature; I want to see the end of the text.

import panel as pn
pn.extension()

gs = pn.GridSpec()
gs[:5, 0] = pn.widgets.MultiSelect(options=['loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text'])

image

ahuang11 avatar Jul 10 '19 18:07 ahuang11

@philippjfr This is one of the issues we discussed last week. I didn't realize it was already a published issue.

kcpevey avatar Aug 05 '19 15:08 kcpevey

@ahuang11 Could you file an issue upstream with Bokeh and then close this one?

philippjfr avatar Dec 07 '20 16:12 philippjfr

This can be mitigated with stylesheets

import panel as pn
pn.extension()

pn.widgets.MultiSelect(options=['loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text'], stylesheets=["""
    .bk-input {
        overflow-x: auto;
    }
"""]).show()

ahuang11 avatar May 10 '24 22:05 ahuang11