|
|
|
@ -278,6 +278,9 @@ void UIWidget::parseBaseStyle(const OTMLNodePtr& styleNode)
|
|
|
|
|
} else {
|
|
|
|
|
Fw::AnchorEdge anchoredEdge = Fw::translateAnchorEdge(what);
|
|
|
|
|
|
|
|
|
|
if(node->value() == "none") {
|
|
|
|
|
removeAnchor(anchoredEdge);
|
|
|
|
|
} else {
|
|
|
|
|
std::vector<std::string> split = Fw::split(node->value(), ".");
|
|
|
|
|
if(split.size() != 2)
|
|
|
|
|
throw OTMLException(node, "invalid anchor description");
|
|
|
|
@ -293,6 +296,7 @@ void UIWidget::parseBaseStyle(const OTMLNodePtr& styleNode)
|
|
|
|
|
|
|
|
|
|
addAnchor(anchoredEdge, hookedWidgetId, hookedEdge);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// lua functions
|
|
|
|
|
} else if(boost::starts_with(node->tag(), "@")) {
|
|
|
|
|
// load once
|
|
|
|
|