diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-08-10 20:28:23 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-08-10 20:28:23 -0600 |
commit | 9af6e761373f25b56e815f1f75b44473474cf280 (patch) | |
tree | 4393f9297c892fc1289c29eb4753462554b498df /src/gui/widgets/scrollarea.cpp | |
parent | 56865a2c98a589a1e530e296b1681e369e2ae48f (diff) | |
download | mana-9af6e761373f25b56e815f1f75b44473474cf280.tar.gz mana-9af6e761373f25b56e815f1f75b44473474cf280.tar.bz2 mana-9af6e761373f25b56e815f1f75b44473474cf280.tar.xz mana-9af6e761373f25b56e815f1f75b44473474cf280.zip |
Fix TabbedArea and ScrollArea to resize contents
Also remove that code from SkillDialog. I tried to do the same with
ChatWindow, but it kept segfaulting. Will try again later.
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r-- | src/gui/widgets/scrollarea.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp index 52322b05..6cf27bb6 100644 --- a/src/gui/widgets/scrollarea.cpp +++ b/src/gui/widgets/scrollarea.cpp @@ -42,6 +42,7 @@ ScrollArea::ScrollArea(): mY(0), mOpaque(true) { + addWidgetListener(this); init(); } @@ -346,3 +347,7 @@ void ScrollArea::mouseExited(gcn::MouseEvent& event) mHasMouse = false; } +void ScrollArea::widgetResized(const gcn::Event &event) +{ + getContent()->setSize(getWidth() - 2 * getFrameSize(), getHeight() - 2 * getFrameSize()); +} |