Просмотр исходного кода

Fixed an issue with menu items not being clickable

Marko Pintera 10 лет назад
Родитель
Сommit
500f5e289c
2 измененных файлов с 1 добавлено и 2 удалено
  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();
 		GUILayoutData backHitboxLayoutData = mBackHitBox->_getLayoutData();
 		backHitboxLayoutData.setWidgetDepth(0);
 		backHitboxLayoutData.setWidgetDepth(0);
 		backHitboxLayoutData.setPanelDepth(std::numeric_limits<INT16>::max());
 		backHitboxLayoutData.setPanelDepth(std::numeric_limits<INT16>::max());
-		mBackHitBox->_setLayoutData(hitboxLayoutData);
+		mBackHitBox->_setLayoutData(backHitboxLayoutData);
 		mBackHitBox->_changeParentWidget(this);
 		mBackHitBox->_changeParentWidget(this);
 		mBackHitBox->_markContentAsDirty();
 		mBackHitBox->_markContentAsDirty();
 
 

+ 0 - 1
TODO.txt

@@ -62,7 +62,6 @@ Code quality improvements:
 ----------------------------------------------------------------------
 ----------------------------------------------------------------------
 Polish stage 1
 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?)
 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 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
 Clicking on menu items doesn't seem to work