Jelajahi Sumber

Fixed an issue with menu items not being clickable

Marko Pintera 10 tahun lalu
induk
melakukan
500f5e289c
2 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 1
      BansheeEngine/Source/BsGUIDropDownMenu.cpp
  2. 0 1
      TODO.txt

+ 1 - 1
BansheeEngine/Source/BsGUIDropDownMenu.cpp

@@ -95,7 +95,7 @@ namespace BansheeEngine
 		GUILayoutData backHitboxLayoutData = mBackHitBox->_getLayoutData();
 		backHitboxLayoutData.setWidgetDepth(0);
 		backHitboxLayoutData.setPanelDepth(std::numeric_limits<INT16>::max());
-		mBackHitBox->_setLayoutData(hitboxLayoutData);
+		mBackHitBox->_setLayoutData(backHitboxLayoutData);
 		mBackHitBox->_changeParentWidget(this);
 		mBackHitBox->_markContentAsDirty();
 

+ 0 - 1
TODO.txt

@@ -62,7 +62,6 @@ Code quality improvements:
 ----------------------------------------------------------------------
 Polish stage 1
 
-When elements are docked in the main window the menu bar drop down appears behind them
 Click on empty part of the menu bar doesn't close the menu bar (ignoring NC area clicks?)
 Clicking on a parent of a menu item just reopens that item but I would expect it to close it
 Clicking on menu items doesn't seem to work