Also draw the scroll corner when there is no border.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30089 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -696,13 +696,6 @@ BControlLook::DrawScrollViewFrame(BView* view, BRect& rect,
|
||||
BRect horizontalScrollBarFrame, const rgb_color& base,
|
||||
border_style border, uint32 flags, uint32 _borders)
|
||||
{
|
||||
if (border == B_NO_BORDER)
|
||||
return;
|
||||
|
||||
bool excludeScrollCorner = border == B_FANCY_BORDER
|
||||
&& horizontalScrollBarFrame.IsValid()
|
||||
&& verticalScrollBarFrame.IsValid();
|
||||
|
||||
// calculate scroll corner rect before messing with the "rect"
|
||||
BRect scrollCornerFillRect(rect.right, rect.bottom,
|
||||
rect.right, rect.bottom);
|
||||
@@ -711,6 +704,18 @@ BControlLook::DrawScrollViewFrame(BView* view, BRect& rect,
|
||||
if (verticalScrollBarFrame.IsValid())
|
||||
scrollCornerFillRect.top = verticalScrollBarFrame.bottom + 1;
|
||||
|
||||
if (border == B_NO_BORDER) {
|
||||
if (scrollCornerFillRect.IsValid()) {
|
||||
view->SetHighColor(base);
|
||||
view->FillRect(scrollCornerFillRect);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
bool excludeScrollCorner = border == B_FANCY_BORDER
|
||||
&& horizontalScrollBarFrame.IsValid()
|
||||
&& verticalScrollBarFrame.IsValid();
|
||||
|
||||
uint32 borders = _borders;
|
||||
if (excludeScrollCorner) {
|
||||
rect.bottom = horizontalScrollBarFrame.top;
|
||||
|
||||
Reference in New Issue
Block a user