[Commits] [wesnoth/wesnoth] 7fdb2c: Tree View Node: don't add unnecessary widget heigh...

GitHub noreply at github.com
Wed Nov 2 17:19:37 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7fdb2c509200f96c17728c795c56a05490e0aac8
      https://github.com/wesnoth/wesnoth/commit/7fdb2c509200f96c17728c795c56a05490e0aac8
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

  Changed paths:
    M src/gui/widgets/scrollbar_container.cpp
    M src/gui/widgets/tree_view_node.cpp

  Log Message:
  -----------
  Tree View Node: don't add unnecessary widget height when adding child nodes

Now extra height is only added if the new best height (height with new node) exceeds the current height.
This should prevent the scrollbar from appearing even when it's obviously not needed.





More information about the Commits mailing list