[Commits] [wesnoth/wesnoth] d00ed2: Fix #2067: Scrolling position in Lua console is re...
GitHub
noreply at github.com
Mon Dec 4 18:53:37 UTC 2017
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: d00ed24d14ba5c729ba083a78e835d3a7e730308
https://github.com/wesnoth/wesnoth/commit/d00ed24d14ba5c729ba083a78e835d3a7e730308
Author: Jyrki Vesterinen <sandgtx at gmail.com>
Date: 2017-12-04 (Mon, 04 Dec 2017)
Changed paths:
M src/gui/dialogs/lua_interpreter.cpp
Log Message:
-----------
Fix #2067: Scrolling position in Lua console is reset constantly
The problem is that a line that's too wide to fit into the window
invalidates the layout of the entire window, and the window will lay itself
out the next time it will be drawn, after the Lua console code has scrolled
it to bottom.
The easiest fix is to simply defer scrolling to bottom until the window has
been drawn (and thus laid out) next time.
More information about the Commits
mailing list