From 2645a58955a94001647291fba5bceaa0ecc0daa0 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Wed, 18 Aug 2021 11:58:18 -0500 Subject: [PATCH] ScrollView for roomlist, NO_BORDER for user scroll --- application/views/ConversationView.cpp | 2 +- application/windows/MainWindow.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/application/views/ConversationView.cpp b/application/views/ConversationView.cpp index 3741c07..35363c3 100644 --- a/application/views/ConversationView.cpp +++ b/application/views/ConversationView.cpp @@ -331,7 +331,7 @@ ConversationView::_InitInterface() { fReceiveView = new RenderView("receiveView"); BScrollView* scrollViewReceive = new BScrollView("receiveScrollView", - fReceiveView, B_WILL_DRAW, false, true); + fReceiveView, B_WILL_DRAW, false, true, B_NO_BORDER); fSendView = new SendTextView("sendView", this); diff --git a/application/windows/MainWindow.cpp b/application/windows/MainWindow.cpp index 5e43c3d..60807bc 100644 --- a/application/windows/MainWindow.cpp +++ b/application/windows/MainWindow.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include "AccountDialog.h" @@ -446,6 +447,9 @@ MainWindow::_InitInterface() fStatusView = new StatusView("statusView", fServer); fSplitView = new BSplitView(B_HORIZONTAL, 0); + BScrollView* listScroll = new BScrollView("roomListScroll", fListView, + true, false, B_NO_BORDER); + // Right-side of window, Chat + Textbox fRightView = new BSplitView(B_VERTICAL, 0); fBackupChatView = new ConversationView(); @@ -465,7 +469,7 @@ MainWindow::_InitInterface() .SetInsets(5, 5, 0, 10) .AddSplit(fSplitView) .AddGroup(B_VERTICAL) - .Add(fListView, 1) + .Add(listScroll, 1) .Add(fStatusView) .End() .Add(fRightView, 5)