AnchorLayout: Allow centering separately for horizontal and vertical

This commit is contained in:
Henrik Rydgård committed 2025-11-10 12:10:08 +01:00
1 parent 0453fb5449
commit 9de8e75709
16 files changed
+71 -61

No files matched your search

+1 -1
View File
@@ -900,7 +900,7 @@ void VisualMappingScreen::CreateViews() {
bounds.w -= leftColumnWidth + 10.0f;
AnchorLayout *rightColumn = new AnchorLayout(new LinearLayoutParams(bounds.w, FILL_PARENT, 1.0f));
psp_ = rightColumn->Add(new MockPSP(new AnchorLayoutParams(bounds.centerX(), bounds.centerY(), NONE, NONE, true)));
psp_ = rightColumn->Add(new MockPSP(new AnchorLayoutParams(bounds.centerX(), bounds.centerY(), NONE, NONE, Centering::Both)));
psp_->ButtonClick.Handle(this, &VisualMappingScreen::OnMapButton);
root_->Add(leftColumn);