Follow-up Comment #2, bug #16059 (project wesnoth):

I attach hereunder a patch to fix the described problem.
The patch implementation is:
- if the chat list is at the end, before a new message is sent, scroll it
back to the end after the new message is appended
- if the chat list is anywhere (scrollbar has been used), then stores the
current position of the scrollbar, append the chat message and scroll the
scrollbar to the stored position.

The patch would have been straightforward if not for creating new helper
functions in scrollbar_container.

The patch is tested with 2 instances in trunk MP server. I have applied the
patch on the code 1.8 and I will test it as soon as the lobby is a bit
animated.

PS: title's first word is "Chat"

(file #9193)
    _______________________________________________________

Additional Item Attachment:

File name: patch-lobby-chatbox-scroll.diff Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?16059>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to