Merge lp:~widelands-dev/widelands/chat-messages-overlap into lp:widelands
Proposed by
GunChleoc
Status: | Merged |
---|---|
Merged at revision: | 7940 |
Proposed branch: | lp:~widelands-dev/widelands/chat-messages-overlap |
Merge into: | lp:widelands |
Diff against target: |
54 lines (+12/-4) 2 files modified
src/wui/interactive_base.cc (+11/-4) src/wui/interactive_base.h (+1/-0) |
To merge this branch: | bzr merge lp:~widelands-dev/widelands/chat-messages-overlap |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Needs Resubmitting | ||
Miroslav Remák | Approve | ||
Review via email: mp+290834@code.launchpad.net |
Commit message
Shifted chat overlay up so it won't overlap with the menu buttons.
Description of the change
See commit message - it's a problem at 800x600 resolution.
To post a comment you must log in.
Change the height here as well, so it doesn't shift back down on resolution change:
graphic_ resolution_ changed_ subscriber_ = Notifications: :subscribe< GraphicResoluti onChanged> ( onChanged& message) { size(message. width, message.height);
[this](const GraphicResoluti
set_
chat_ overlay_ ->set_size( get_w() / 2, get_h() - 25); overlay_ ->recompute( ); toolbar_ position( );
chat_
adjust_
});