Skip to content

Commit

Permalink
Merge pull request #2 from cgalvan/cgalvan/ImprovedShapeExampleCpp
Browse files Browse the repository at this point in the history
Made some improvements to the C++ Shape Example.
  • Loading branch information
cgalvan authored Oct 29, 2021
2 parents cfa276d + 95767dc commit 2686bab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace ShapeExample
options.toolbarIcon = ":/ShapeExample/toolbar_icon.svg";

// Register our custom widget as a dockable tool with the Editor
AzToolsFramework::RegisterViewPane<ShapeExampleWidget>("ShapeExample", "Tools", options);
AzToolsFramework::RegisterViewPane<ShapeExampleWidget>("Shape Example (C++)", "Examples", options);
}

} // namespace ShapeExample
4 changes: 4 additions & 0 deletions cpp_gems/ShapeExample/Code/Source/ShapeExampleWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ namespace ShapeExample
shapeButtons->setLayout(gridLayout);
mainLayout->addWidget(shapeButtons);

// Add stretch at bottom of the layout to fill any expanded space larger than what is needed,
// so that if our tool is resized large our content will stay together
mainLayout->addStretch();

setLayout(mainLayout);
}

Expand Down

0 comments on commit 2686bab

Please sign in to comment.