Width of row of buttons matching that of figure

the width of the row of buttons nicely matches that of the figure below them in a column, but not when i make one of the buttons narrower. in that case, the button row is wider than the figure. is there a way to make it the same width? thanks.

from bokeh.io import show
from bokeh.models import Button
from bokeh.layouts import row, column
from bokeh.plotting import figure

width=400

button1 = Button(label="Foo")
button2 = Button(label="Bar")
button3 = Button(label="Baz")
p = figure(width=width)

show(column(row(button1,button2,button3, width=width),
            p))

from bokeh.io import show
from bokeh.models import Button
from bokeh.layouts import row, column
from bokeh.plotting import figure

width=400

button1 = Button(label="Foo")
button2 = Button(label="Bar")
button3 = Button(label="Baz", width=50)
p = figure(width=width)

show(column(row(button1,button2,button3, width=width),
            p))

this is in bokeh 2.3.0 btw and python 3.7.1 and chrome