* Fix drawing the background if needed on other shelfs than Tracker (untested).
* Fix invalidating the whole view when receiving a color drop, since the frame around the text input is also affected now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29893 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -284,7 +284,7 @@ void
|
||||
CalcView::Draw(BRect updateRect)
|
||||
{
|
||||
bool drawBackground = true;
|
||||
if (Parent() && Window()->Bounds() != Frame()) {
|
||||
if (Parent() && (Parent()->Flags() & B_DRAW_ON_CHILDREN) != 0) {
|
||||
// CalcView is embedded somewhere, most likely the Tracker Desktop
|
||||
// shelf.
|
||||
drawBackground = false;
|
||||
@@ -758,8 +758,8 @@ CalcView::Paste(BMessage *message)
|
||||
if (keypadRect.Contains(dropPoint) && dropColor) {
|
||||
fBaseColor = *dropColor;
|
||||
_Colorize();
|
||||
// redraw keypad
|
||||
Invalidate(keypadRect);
|
||||
// redraw
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user