FlatNoteBook last tab selection strange behaviour

Here I have a FlatNoteBook, which contains 8 tabs. As you can see in the first image (top), they all fit within the width of the window. The second image shows that regardless of the tab selection, the width of the tabs stays the same. This is all fine and dandy, until you select the last tab ‘WOLVERINE’. This happens regardless of the title of the tab. Selecting the right-most tab causes automatic tab scrolling, hiding the first tab ‘BPL_IOEXP’. I’ve edited the fourth image to show that there clearly is still room for it, and the automatic scrolling should never happen.

Has anyone else experienced issues like this or know a solution? I’m using wxpython 3.0 for python 2.7.

If you need any more information about the program let me know, although from my experiments, only changing the width of the frame solves it, and it needs to be around 120 pixels wider than the edge of the rightmost tab for this to happen. (shown in picture with red text).

flatnotbook.png

flatnotebookfixed.png

update: Using the style FNB_NAV_BUTTONS_WHEN_NEEDED hides the nav buttons as they are not needed, but switching to the last tab still makes it think they are necessary. Extra space required is still the same around 120 pixels to solve the problem.