nk_layout_peek() bugfix

Fixes boundary fetching issues present in widgets organized by row templates.
master
NuklearBomb 2017-12-07 22:08:11 -05:00 committed by GitHub
parent a9e5e7299c
commit 1c07ceaac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -19954,6 +19954,9 @@ nk_layout_peek(struct nk_rect *bounds, struct nk_context *ctx)
layout->row.index = 0;
}
nk_layout_widget_space(bounds, ctx, win, nk_false);
if (!layout->row.index) {
bounds->x -= layout->row.item_offset;
}
layout->at_y = y;
layout->row.index = index;
}