From 2c856023e9130287f3d90d516ff8e01a6cd9cb67 Mon Sep 17 00:00:00 2001 From: Kacper Kasper Date: Tue, 21 Nov 2017 18:32:48 +0100 Subject: [PATCH] DeskCalc: fix cut off buttons. * Window frame might change based on set size limits. Creating view with rectangle used to create the window causes it to anchor outside the window. To address that pass current frame rectangle to the view. * Fixes #13167. --- src/apps/deskcalc/CalcWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/deskcalc/CalcWindow.cpp b/src/apps/deskcalc/CalcWindow.cpp index 97212bfbdb..d8ad35ce08 100644 --- a/src/apps/deskcalc/CalcWindow.cpp +++ b/src/apps/deskcalc/CalcWindow.cpp @@ -45,7 +45,7 @@ CalcWindow::CalcWindow(BRect frame, BMessage* settings) kMinimumHeightBasic, kMaximumHeightBasic); frame.OffsetTo(B_ORIGIN); - fCalcView = new CalcView(frame, baseColor, settings); + fCalcView = new CalcView(Frame(), baseColor, settings); // create replicant dragger BRect replicantFrame(frame);