diff --git a/code/modules/client/verbs/ooc.dm b/code/modules/client/verbs/ooc.dm index bb3581ef127..e33f92ff265 100644 --- a/code/modules/client/verbs/ooc.dm +++ b/code/modules/client/verbs/ooc.dm @@ -339,6 +339,9 @@ GLOBAL_VAR_INIT(normal_ooc_colour, "#002eb8") var/split_size = splittext(sizes["mainwindow.split.size"], "x") var/split_width = text2num(split_size[1]) + // Avoid auto-resizing the statpanel and chat into nothing. + desired_width = min(desired_width, split_width - 300) + // Calculate and apply a best estimate // +4 pixels are for the width of the splitter's handle var/pct = 100 * (desired_width + 4) / split_width