fix hierarchy panel menu bar padding

This commit is contained in:
Sri Sham Haran 2022-10-28 12:47:17 +08:00
parent c7e2116df0
commit c35f3d5e15
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ namespace SHADE
{
if (ImGui::BeginMenuBar())
{
ImGui::SetCursorPosX(ImGui::GetContentRegionAvail().x * 0.75f);
auto size = ImGui::GetWindowSize();
auto g = ImGui::GetCurrentContext();
ImGui::SetCursorPosX(size.x - g->Style.FramePadding.x * 15.0f);
if(ImGui::SmallButton(ICON_MD_DESELECT))
{
auto editor = SHSystemManager::GetSystem<SHEditor>();