mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-02 03:00:23 +03:00
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:
@@ -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.
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user