@@ -46,7 +46,7 @@ split = Split(
4646 sizes = (50 , 50 ), # Equal sizing initially
4747 min_size = 150 , # Minimum 150px for each panel
4848 show_buttons = True , # Show collapse/expand buttons on the divider
49- width = 500
49+ sizing_mode = " stretch_both " ,
5050)
5151
5252split.servable()
@@ -82,7 +82,8 @@ split = HSplit(
8282 right_panel,
8383 sizes = (70 , 30 ), # 70% left, 30% right
8484 min_size = 300 , # Minimum 300px for each panel
85- width = 800
85+ sizing_mode = " stretch_width" ,
86+ height = 250 ,
8687)
8788
8889split.servable()
@@ -162,7 +163,8 @@ multi = MultiSplit(
162163 pn.pane.Markdown(" ## Panel 3" ),
163164 sizes = (30 , 40 , 30 ), # Three panels with custom sizing
164165 min_size = 100 , # Minimum 100px for each panel
165- orientation = " horizontal"
166+ orientation = " horizontal" ,
167+ sizing_mode = " stretch_both" ,
166168)
167169
168170multi.servable()
@@ -225,16 +227,18 @@ from panel_splitjs import Split
225227
226228pn.extension()
227229
228- chat = pn.chat.ChatInterface()
229- output = pn.Column(" # Output Area" )
230+ with pn.config.set(sizing_mode = " stretch_width" ):
231+ chat = pn.chat.ChatInterface(margin = (5 ,25 ,5 ,5 ))
232+ output = pn.Column(" # Output Area" )
230233
231234split = Split(
232235 chat,
233236 output,
234237 collapsed = None , # Both panels visible
235238 expanded_sizes = (50 , 50 ),
236239 show_buttons = True ,
237- min_size = (300 , 300 ) # Minimum 300px for each panel
240+ min_size = (600 , 300 ), # Minimum 300px for each panel
241+ sizing_mode = " stretch_both" ,
238242)
239243
240244split.servable()
0 commit comments