#define LAYOUT_ROW_KEY_HINT_STRING_TAG "hint_string"
+#define LAYOUT_SUB_LAYOUT_DEFAULT_STRING "DEFAULT"
+
#ifndef LOG_TAG
#define LOG_TAG "LIBSCL_UI"
#endif
}
child_node = child_node->next;
}
- /* Do not increase row_y position when this row belongs to specific sublayout */
- if (row.sub_layout == NULL) {
+ /* Do not increase row_y position when this row belongs to specific sublayout other than "DEFAULT" */
+ static const char default_sub_layout_string[] = LAYOUT_SUB_LAYOUT_DEFAULT_STRING;
+ if (row.sub_layout == NULL ||
+ (row.sub_layout && strncmp(row.sub_layout, default_sub_layout_string, sizeof(default_sub_layout_string)) == 0)) {
if (row_y) {
*row_y = row.row_y + row.key_height + row.row_spacing;
}