diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-08 22:22:00 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-08 22:22:00 +0100 |
commit | 728abec962f993309acf3ebb1317b5f3773f18c7 (patch) | |
tree | ab4e22fd914681fa42babfcba184a932956c9667 /plugingui/listboxbasic.cc | |
parent | f762a1fbf4ccf565953855695ddd0bf60b34bf8e (diff) |
UI resize refactoring part 1.
Diffstat (limited to 'plugingui/listboxbasic.cc')
-rw-r--r-- | plugingui/listboxbasic.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/listboxbasic.cc b/plugingui/listboxbasic.cc index 2e02301..730880a 100644 --- a/plugingui/listboxbasic.cc +++ b/plugingui/listboxbasic.cc @@ -355,11 +355,11 @@ void ListBoxBasic::buttonEvent(ButtonEvent* buttonEvent) } } -void ListBoxBasic::resize(int w, int h) +void ListBoxBasic::resize(std::size_t width, std::size_t height) { - Widget::resize(w,h); - scroll.move(w - scroll.width(), 0); - scroll.resize(scroll.width(), h); + Widget::resize(width, height); + scroll.move(width - scroll.width(), 0); + scroll.resize(scroll.width(), height); } } // GUI:: |