Fixed the linear-layout sizing bug:

The child margins were already included. The real issue was that a wrap-content UILinearLayout allocated weighted space from the parent’s full dimensions, ignoring the parent’s content padding. Added a regression reproducing a padded parent, weighted input, and fixed siblings with margins.

Added removeKeyBindingCommand in UISceneNode and UIWindow.
This commit is contained in:
Martín Lucas Golini
2026-08-21 13:48:46 -03:00
parent 8eed5fcd58
commit 866163457e
6 changed files with 49 additions and 4 deletions
+1
View File
@@ -679,6 +679,7 @@ class EE_API UISceneNode : public SceneNode {
* @param func The function to call when the command is executed.
*/
void setKeyBindingCommand( const std::string& command, KeyBindingCommand func );
void removeKeyBindingCommand( const std::string& command );
/**
* @brief Executes a keybinding command.
+1
View File
@@ -194,6 +194,7 @@ class EE_API UIWindow : public UIWidget {
void addKeyBinds( const std::map<KeyBindings::Shortcut, std::string>& binds );
void setKeyBindingCommand( const std::string& command, KeyBindingCommand func );
void removeKeyBindingCommand( const std::string& command );
void executeKeyBindingCommand( const std::string& command );