Merge pull request #574 from NuklearBomb/patch-2

nk_layout_peek() bugfix
This commit is contained in:
Micha Mettke 2017-12-08 10:20:50 +01:00 committed by GitHub
commit 267383a336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}