Hide overflow and add scrollbar to just the label

pull/60/head
Thomas Bouve 2021-08-20 23:49:13 +02:00
rodzic 173d752d32
commit 864699a781
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1,7 +1,7 @@
import os
from typing import Optional, Sequence, Mapping, Callable
from ipywidgets import Dropdown, Text, Select, Button, HTML
from ipywidgets import Layout, GridBox, HBox, VBox, ValueWidget
from ipywidgets import Layout, GridBox, Box, HBox, VBox, ValueWidget
from .utils import get_subpaths, get_dir_contents, match_item
@ -124,7 +124,7 @@ class FileChooser(VBox, ValueWidget):
children=[
self._select,
self._cancel,
self._label
Box([self._label], layout=Layout(overflow='auto'))
],
layout=Layout(width='auto')
)