@@ -281,13 +281,22 @@ function Tags:OpenEditor()
281
281
panelConnectionTags :SetPaintBackground ( false )
282
282
sheet :AddSheet ( L " tab.conn_disconn" , panelConnectionTags , " icon16/group_go.png" )
283
283
284
- local checkBotJoinLeave = vgui .Create ( " DCheckBoxLabel" , panelConnectionTags )
284
+ local panelBots = vgui .Create ( " DPanel" , panelConnectionTags )
285
+ panelBots :Dock ( TOP )
286
+ panelBots :SetTall ( 28 )
287
+ panelBots :DockMargin ( 0 , 0 , 0 , 4 )
288
+
289
+ panelBots .Paint = function ( s , w , h )
290
+ derma .SkinHook ( " Paint" , " Frame" , s , w , h )
291
+ return true
292
+ end
293
+
294
+ local checkBotJoinLeave = vgui .Create ( " DCheckBoxLabel" , panelBots )
285
295
checkBotJoinLeave :SetText ( L " tags.show_bot_joinleave_messages" )
286
296
checkBotJoinLeave :SetTextColor ( Color ( 255 , 255 , 255 ) )
287
297
checkBotJoinLeave :SetValue ( byConnection .botConnectDisconnect )
288
- checkBotJoinLeave :SizeToContents ()
289
- checkBotJoinLeave :Dock ( TOP )
290
- checkBotJoinLeave :DockPadding ( 6 , 6 , 6 , 6 )
298
+ checkBotJoinLeave :Dock ( FILL )
299
+ checkBotJoinLeave :DockMargin ( 6 , 0 , 0 , 0 )
291
300
292
301
checkBotJoinLeave .OnChange = function ( _ , val )
293
302
byConnection .botConnectDisconnect = val
0 commit comments