fix hierarchy panel menu bar padding
This commit is contained in:
parent
c7e2116df0
commit
c35f3d5e15
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue