aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector_nk.c
diff options
context:
space:
mode:
Diffstat (limited to 'atom_inspector_nk.c')
-rw-r--r--atom_inspector_nk.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/atom_inspector_nk.c b/atom_inspector_nk.c
index f614fe4..2a70fe2 100644
--- a/atom_inspector_nk.c
+++ b/atom_inspector_nk.c
@@ -195,7 +195,13 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
nk_layout_row_dynamic(ctx, content_h, 1);
nk_flags flags = NK_WINDOW_BORDER;
if(handle->state.follow)
+ {
flags |= NK_WINDOW_NO_SCROLLBAR;
+ }
+ else
+ {
+ handle->shadow = false;
+ }
struct nk_list_view lview;
if(nk_list_view_begin(ctx, &lview, "Events", flags, widget_h, NK_MIN(handle->n_item, MAX_LINES)))
{