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.
This commit is contained in:
Kacper Kasper 2017-11-21 18:32:48 +01:00
parent 6663167b59
commit 2c856023e9
1 changed files with 1 additions and 1 deletions

View File

@ -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);