Nux

Merge lp:~brandontschaefer/nux/lp.1157329-fix-3.0 into lp:nux/3.0

Proposed by Brandon Schaefer
Status: Merged
Approved by: Christopher Townsend
Approved revision: 666
Merged at revision: 666
Proposed branch: lp:~brandontschaefer/nux/lp.1157329-fix-3.0
Merge into: lp:nux/3.0
Diff against target: 13 lines (+4/-0)
1 file modified
Nux/TextEntry.cpp (+4/-0)
To merge this branch: bzr merge lp:~brandontschaefer/nux/lp.1157329-fix-3.0
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
Review via email: mp+154562@code.launchpad.net

Commit message

When the Geometry has changed in TextEntry QueueRefresh to Reset the Layout.

Description of the change

This branch MUST be approved and merged before this one:
https://code.launchpad.net/~brandontschaefer/nux/lp.1157329-fix/+merge/154228

To post a comment you must log in.
Revision history for this message
Christopher Townsend (townsend) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Nux/TextEntry.cpp'
2--- Nux/TextEntry.cpp 2012-09-18 18:53:36 +0000
3+++ Nux/TextEntry.cpp 2013-03-21 00:36:23 +0000
4@@ -179,6 +179,10 @@
5 RecvKeyEvent(NUX_KEYUP, keysym, state, nullptr, 0);
6 });
7
8+ geometry_changed.connect([this] (Area* /*area*/, Geometry& /*geo*/) {
9+ QueueRefresh(true, false);
10+ });
11+
12 begin_key_focus.connect(sigc::mem_fun(this, &TextEntry::RecvStartKeyFocus));
13 end_key_focus.connect(sigc::mem_fun(this, &TextEntry::RecvEndKeyFocus));
14

Subscribers

People subscribed via source and target branches