nui
nui copied to clipboard
Button render equal setters, different properties.
In NUIButtonRenderer, padding is set to setTitleEdgeInsets:
if ([NUISettings hasProperty:@"padding" withClass:className]) {
[button setTitleEdgeInsets:[NUISettings getEdgeInsets:@"padding" withClass:className]];
}
https://github.com/squarefrog/nui/blob/master/NUI/Core/Renderers/NUIButtonRenderer.m#L29-L31
The same property is used for title-insets
if ([NUISettings hasProperty:@"title-insets" withClass:className]) {
[button setTitleEdgeInsets:[NUISettings getEdgeInsets:@"title-insets" withClass:className]];
}
https://github.com/squarefrog/nui/blob/master/NUI/Core/Renderers/NUIButtonRenderer.m#L158-L160
Is this intentional?