private void SetBuffer() { int totalLines = 24 + this.Post.Content.Count; if (totalLines > 30) { ForumViewEngine.SetBufferHeight(totalLines); } }
private void SetBuffer() { int totalLines = 10 + this.Post.Content.Count; foreach (var reply in this.Post.Replies) { totalLines += 2 + reply.Content.Count; } if (totalLines > 30) { ForumViewEngine.SetBufferHeight(totalLines); } }