Removed disabled multiline editbox with scrollbar

Need to revert a previously added change to read only
edit boxes which deactivated the input but thereby
also deactivated the scrollbar behavior which is not
wanted.
This commit is contained in:
vurtun 2016-01-21 22:08:20 +01:00
parent 40c74cab1f
commit 0bceb4b37d

View File

@ -9339,7 +9339,6 @@ zr_edit_buffer(struct zr_context *ctx, zr_flags flags,
} else box.sel = *sel;
}
i = (flags & ZR_EDIT_READ_ONLY) ? 0: i;
if (flags & ZR_EDIT_MULTILINE)
zr_widget_edit_box(&win->buffer, bounds, &box, &field, i, &ctx->style.font);
else zr_widget_edit_field(&win->buffer, bounds, &box, &field, i, &ctx->style.font);