|
|
@ -3,6 +3,7 @@
|
|
|
|
#include <MyGUI_ListBox.h>
|
|
|
|
#include <MyGUI_ListBox.h>
|
|
|
|
#include <MyGUI_ImageBox.h>
|
|
|
|
#include <MyGUI_ImageBox.h>
|
|
|
|
#include <MyGUI_Gui.h>
|
|
|
|
#include <MyGUI_Gui.h>
|
|
|
|
|
|
|
|
#include <MyGUI_ScrollView.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
|
|
#include "../mwbase/world.hpp"
|
|
|
|
#include "../mwbase/world.hpp"
|
|
|
@ -244,6 +245,11 @@ namespace MWGui
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Canvas size must be expressed with VScroll disabled, otherwise MyGUI would expand the scroll area when the scrollbar is hidden
|
|
|
|
|
|
|
|
mSpellArea->setVisibleVScroll(false);
|
|
|
|
|
|
|
|
mSpellArea->setCanvasSize(MyGUI::IntSize(mSpellArea->getWidth(), std::max(mSpellArea->getHeight(), coord.top)));
|
|
|
|
|
|
|
|
mSpellArea->setVisibleVScroll(true);
|
|
|
|
|
|
|
|
mSpellArea->setViewOffset(MyGUI::IntPoint(0, 0));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|