From: mlichvar Date: Fri, 8 Jun 2007 10:59:14 +0000 (+0000) Subject: - fix scrollbar positioning in listbox X-Git-Tag: r0-52-7~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4014bc659c0a3ac708d9d4fea0375e538bab3339;p=thirdparty%2Fnewt.git - fix scrollbar positioning in listbox --- diff --git a/listbox.c b/listbox.c index d0ac5d3..c802e7c 100644 --- a/listbox.c +++ b/listbox.c @@ -74,7 +74,7 @@ static void listboxPlace(newtComponent co, int newLeft, int newTop) { if (li->sb) li->sb->ops->place(li->sb, co->left + co->width - li->bdxAdjust - 1, - co->top); + co->top + li->bdyAdjust); } newtComponent newtListbox(int left, int top, int height, int flags) { @@ -200,7 +200,8 @@ void newtListboxSetWidth(newtComponent co, int width) { co->width = width; li->curWidth = co->width - li->sbAdjust - 2 * li->bdxAdjust; li->userHasSetWidth = 1; - if (li->sb) li->sb->left = co->width + co->left - 1; + if (li->sb) + li->sb->left = co->left + co->width - li->bdxAdjust - 1; listboxDraw(co); } diff --git a/newt.spec b/newt.spec index 66280cf..641799a 100644 --- a/newt.spec +++ b/newt.spec @@ -88,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libnewt.a %changelog +- fix scrollbar positioning in listbox - cope with backward system time jumps (#240691) - free helplines and windows in newtFinished, check for overflow (#239992) - add release to -devel and -static requires (#238784)