Index: source/gui/CDropDown.h =================================================================== --- source/gui/CDropDown.h +++ source/gui/CDropDown.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2015 Wildfire Games. +/* Copyright (C) 2017 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -79,6 +79,12 @@ protected: /** + * If the size changed, the texts have to be updated as + * the word wrapping depends on and influences the size. + */ + virtual void UpdateCachedSize(); + + /** * Sets up text, should be called every time changes has been * made that can change the visual. */ Index: source/gui/CDropDown.cpp =================================================================== --- source/gui/CDropDown.cpp +++ source/gui/CDropDown.cpp @@ -63,10 +63,15 @@ void CDropDown::SetupText() { SetupListRect(); - CList::SetupText(); } +void CDropDown::UpdateCachedSize() +{ + CList::UpdateCachedSize(); + SetupText(); +} + void CDropDown::HandleMessage(SGUIMessage& Message) { // Important