Fixed scrollable area of GUIListBoxes not changing when children are hidden (e.g. when filtering messages in the server log), fixed new log messages appearing in the server log even if the type of message has been filtered out.
This commit is contained in:
@@ -355,7 +355,7 @@ namespace Barotrauma
|
||||
totalSize = (int)(padding.Y + padding.W);
|
||||
foreach (GUIComponent child in children)
|
||||
{
|
||||
if (child == frame) continue;
|
||||
if (child == frame || !child.Visible) continue;
|
||||
totalSize += (scrollBar.IsHorizontal) ? child.Rect.Width : child.Rect.Height;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user