Skip to content

Commit b5d42bc

Browse files
committed
Adding max-content width to custom radiobutton layout in the example docs.
1 parent 97a68d5 commit b5d42bc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/source/examples/Widget List.ipynb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
"cell_type": "markdown",
549549
"metadata": {},
550550
"source": [
551-
"#### With dynamic layout, no width restriction"
551+
"#### With dynamic layout and very long labels"
552552
]
553553
},
554554
{
@@ -560,7 +560,15 @@
560560
"widgets.Box(\n",
561561
" [\n",
562562
" widgets.Label(value='Pizza topping with a very long label:'), \n",
563-
" widgets.RadioButtons(options=['pepperoni', 'pineapple', 'anchovies', 'and the long name that will fit fine'])\n",
563+
" widgets.RadioButtons(\n",
564+
" options=[\n",
565+
" 'pepperoni', \n",
566+
" 'pineapple', \n",
567+
" 'anchovies', \n",
568+
" 'and the long name that will fit fine and the long name that will fit fine and the long name that will fit fine '\n",
569+
" ],\n",
570+
" layout={'width': 'max-content'}\n",
571+
" )\n",
564572
" ]\n",
565573
")"
566574
]

0 commit comments

Comments
 (0)