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,
|
BRect horizontalScrollBarFrame, const rgb_color& base,
|
||||||
border_style border, uint32 flags, uint32 _borders)
|
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"
|
// calculate scroll corner rect before messing with the "rect"
|
||||||
BRect scrollCornerFillRect(rect.right, rect.bottom,
|
BRect scrollCornerFillRect(rect.right, rect.bottom,
|
||||||
rect.right, rect.bottom);
|
rect.right, rect.bottom);
|
||||||
@@ -711,6 +704,18 @@ BControlLook::DrawScrollViewFrame(BView* view, BRect& rect,
|
|||||||
if (verticalScrollBarFrame.IsValid())
|
if (verticalScrollBarFrame.IsValid())
|
||||||
scrollCornerFillRect.top = verticalScrollBarFrame.bottom + 1;
|
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;
|
uint32 borders = _borders;
|
||||||
if (excludeScrollCorner) {
|
if (excludeScrollCorner) {
|
||||||
rect.bottom = horizontalScrollBarFrame.top;
|
rect.bottom = horizontalScrollBarFrame.top;
|
||||||
|
|||||||
Reference in New Issue
Block a user