Author Topic: Bug fix report: No scroll bar issue in extended setting window  (Read 266 times)

0 Members and 1 Guest are viewing this topic.

Offline Phystam

As discussed in http://forum.simutrans.com/index.php?topic=15256.msg150445#msg150445, still there is "no scroll bar issue" in extended setting window.
I found the bug point so I report it here.

At the end of settings_extended_general(revenue)_stats_t::init() function in gui/settings_stats.cc, there is
Code: [Select]
clear_dirty();
set_size( scr_size(width, ypos) );
but it does not work. We should write same as other functions like this:
Code: [Select]
clear_dirty();
height = ypos;
set_size( settings_stats_t::get_size() );
Then it worked well, the scroll bar appeared. Please fix this.

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15857
  • Total likes: 407
  • Helpful: 177
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Bug fix report: No scroll bar issue in extended setting window
« Reply #1 on: August 29, 2017, 08:28:15 PM »
Thank you very much - I have now fixed this.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.