Commit Graph

15 Commits

Author SHA1 Message Date
Ingo Rohloff 9236b92f86 fix nk_do_edit: Keep scroll position when re-activating edit widget.
How to test:
Construct two edit widgets.
Enter a long text into the first edit widget, so that the widget autoscrolls.
Click into second (still empty) edit widget.
Click into first edit widget again.
=> Text jums back, so that first character of text in first edit widget is visible again.
This patch keeps the scroll position of the edit widget constant.
2020-05-27 15:24:18 +02:00
Jimmi Holst Christensen 20c757dabc Fixed package.json version 2020-05-14 18:53:13 +02:00
Richard Gill 562220749c
Include stdarg (#128)
fix: missing stdarg.h inclusion
2020-05-14 18:43:29 +02:00
exchg 5ecd6e359e
fix: 'nk_edit' frame border drawing (#120)
* fix: 'nk_edit' frame border drawing

Draw frame border after background to prevent overlapping.
2020-05-08 10:43:15 +02:00
Martin Gerhardy 455b404d86 Fixed issue #87 - Compiler warnings about unused functions
Fixed compiler warning by removing unused function nk_sqrt
Fixed compiler warning if you bring your own sin/cos/strtod....
Bump version for breaking nk_sqrt changes
Updated changelog
2020-04-17 09:58:30 +02:00
Igor Zhukov 04c16e5f32 Do not use pool before checking for NULL 2020-04-06 23:46:28 +07:00
Jimmi Holst Christensen 94ed1d4099 Fix bug where layout was restored incorrectly on tree pop.
Fixes #85
2020-03-22 15:50:21 +01:00
Jimmi Holst Christensen 75c71790f3 Fix bug where padding was subtracted from widget
This caused combo boxes to draw its items before the
panel padding, causing the text to be clipped off.

The code deleted here seems to have been an effort to
solve what 14dd68e solved so it makes sense that these
would conflict. I'm pretty sure 14dd68e is the correct
solution though and this was some old hack.
2020-03-11 18:45:36 +01:00
Jimmi Holst Christensen 14dd68ea0f Fix bug where width padding was applied twice 2020-03-06 17:30:25 +01:00
Ron Aaron 8513b632a2 really fixed memory issue, bumped version, remove tabs 2020-03-06 13:05:56 +02:00
luknw 2c2b59cee0 Update repo in package.json 2019-12-10 14:53:19 +01:00
luknw 1cdd4f10aa [#18] Fix off-by-one error in NK_INTERSECT 2019-12-10 12:46:23 +01:00
Ingo Rohloff f3353a29a6 Update CHANGELOG, package.json 2019-12-03 19:03:22 +01:00
eax0r 5e6cdbc432
Update package.json 2019-09-20 03:45:06 +02:00
Joseph Werle cc57b77565 make clib friendly 2016-06-18 14:12:58 -04:00