mirror of
https://review.haiku-os.org/haiku
synced 2025-01-20 13:31:28 +01:00
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:
parent
6663167b59
commit
2c856023e9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user