Skip to content

Commit 3e91905

Browse files
authored
Merge pull request #387 from Immediate-Mode-UI/revert-156-fix-layout-bounds-padding
Revert "Fix layout bounds not accounting for padding"
2 parents aa47577 + 878936f commit 3e91905

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

clib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuklear",
3-
"version": "4.9.4",
3+
"version": "4.9.5",
44
"repo": "Immediate-Mode-UI/Nuklear",
55
"description": "A small ANSI C gui toolkit",
66
"keywords": ["gl", "ui", "toolkit"],

nuklear.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19547,8 +19547,6 @@ nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type pan
1954719547
layout->bounds = win->bounds;
1954819548
layout->bounds.x += panel_padding.x;
1954919549
layout->bounds.w -= 2*panel_padding.x;
19550-
layout->bounds.y += panel_padding.y;
19551-
layout->bounds.h -= 2*panel_padding.y;
1955219550
if (win->flags & NK_WINDOW_BORDER) {
1955319551
layout->border = nk_panel_get_border(style, win->flags, panel_type);
1955419552
layout->bounds = nk_shrink_rect(layout->bounds, layout->border);
@@ -29626,8 +29624,9 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
2962629624
/// - [y]: Minor version with non-breaking API and library changes
2962729625
/// - [z]: Patch version with no direct changes to the API
2962829626
///
29627+
/// - 2021/12/22 (4.9.5) - Revert layout bounds not accounting for padding due to regressions
2962929628
/// - 2021/12/22 (4.9.4) - Fix checking hovering when window is minimized
29630-
/// - 2021/12/22 (4.09.3) - Fix layout bounds not accounting for padding.
29629+
/// - 2021/12/22 (4.09.3) - Fix layout bounds not accounting for padding
2963129630
/// - 2021/12/19 (4.09.2) - Update to stb_rect_pack.h v1.01 and stb_truetype.h v1.26
2963229631
/// - 2021/12/16 (4.09.1) - Fix the majority of GCC warnings
2963329632
/// - 2021/10/16 (4.09.0) - Added nk_spacer() widget

src/CHANGELOG

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
/// - [y]: Minor version with non-breaking API and library changes
88
/// - [z]: Patch version with no direct changes to the API
99
///
10+
/// - 2021/12/22 (4.9.5) - Revert layout bounds not accounting for padding due to regressions
1011
/// - 2021/12/22 (4.9.4) - Fix checking hovering when window is minimized
11-
/// - 2021/12/22 (4.09.3) - Fix layout bounds not accounting for padding.
12+
/// - 2021/12/22 (4.09.3) - Fix layout bounds not accounting for padding
1213
/// - 2021/12/19 (4.09.2) - Update to stb_rect_pack.h v1.01 and stb_truetype.h v1.26
1314
/// - 2021/12/16 (4.09.1) - Fix the majority of GCC warnings
1415
/// - 2021/10/16 (4.09.0) - Added nk_spacer() widget

src/nuklear_panel.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type pan
156156
layout->bounds = win->bounds;
157157
layout->bounds.x += panel_padding.x;
158158
layout->bounds.w -= 2*panel_padding.x;
159-
layout->bounds.y += panel_padding.y;
160-
layout->bounds.h -= 2*panel_padding.y;
161159
if (win->flags & NK_WINDOW_BORDER) {
162160
layout->border = nk_panel_get_border(style, win->flags, panel_type);
163161
layout->bounds = nk_shrink_rect(layout->bounds, layout->border);

0 commit comments

Comments
 (0)