- if ((n = parse_find_node("popupPosition", node))) {
- config_resize_popup_pos = parse_int(doc, n);
- if (parse_contains("Top", doc, n))
- config_resize_popup_pos = 1;
- else if (parse_contains("Center", doc, n))
- config_resize_popup_pos = 0;
+ if ((n = obt_parse_find_node(node, "popupPosition"))) {
+ if (obt_parse_node_contains(n, "Top"))
+ config_resize_popup_pos = OB_RESIZE_POS_TOP;
+ else if (obt_parse_node_contains(n, "Center"))
+ config_resize_popup_pos = OB_RESIZE_POS_CENTER;
+ else if (obt_parse_node_contains(n, "Fixed")) {
+ config_resize_popup_pos = OB_RESIZE_POS_FIXED;
+
+ if ((n = obt_parse_find_node(node, "popupFixedPosition"))) {
+ xmlNodePtr n2;
+
+ if ((n2 = obt_parse_find_node(n->children, "x")))
+ config_parse_gravity_coord(n2,
+ &config_resize_popup_fixed.x);
+ if ((n2 = obt_parse_find_node(n->children, "y")))
+ config_parse_gravity_coord(n2,
+ &config_resize_popup_fixed.y);
+
+ config_resize_popup_fixed.x.pos =
+ MAX(config_resize_popup_fixed.x.pos, 0);
+ config_resize_popup_fixed.y.pos =
+ MAX(config_resize_popup_fixed.y.pos, 0);
+ }
+ }