Skip to content

Commit

Permalink
Nebula: Pass view Bounds() instead of Frame() into SettingsView
Browse files Browse the repository at this point in the history
This was why the view was not where it should be.
  • Loading branch information
jscipione committed Apr 13, 2016
1 parent e5147b1 commit 523f450
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/add-ons/screen_savers/nebula/Nebula.cpp
Expand Up @@ -598,8 +598,6 @@ SettingsView::SettingsView(BRect frame)
.Add(fFramesSlider)
.AddGlue()
.End();

MoveBy(0, -25); // The view is not where it should be.
}


Expand Down Expand Up @@ -695,7 +693,7 @@ Nebula::Nebula(BMessage* message, image_id id)
void
Nebula::StartConfig(BView* view)
{
view->AddChild(new SettingsView(view->Frame()));
view->AddChild(new SettingsView(view->Bounds()));
}


Expand Down

0 comments on commit 523f450

Please sign in to comment.