+void SelectSpell::OnResize(int width, int height) {
+ const Vector<int> offset = parent->ScreenOffset();
+
+ const Resources &res = parent->Res();
+ const Frame &frame = *res.selectFrame;
+
+ framePosition = offset + frame.BorderSize();
+ frameSize = Vector<int>(
+ parent->Width() - 2 * frame.BorderWidth(),
+ res.normalFont->CharHeight() * 13);
+
+ headlinePosition = offset + Vector<int>(
+ 2 * frame.BorderWidth() + res.normalFont->CharWidth(),
+ 2 * frame.BorderHeight());