~bregma/nux/lp-1011395

« back to all changes in this revision

Viewing changes to Nux/TextEntry.cpp

  • Committer: Tarmac
  • Author(s): Brandon Schaefer
  • Date: 2013-03-21 16:42:46 UTC
  • mfrom: (765.2.2 lp.1157329-fix)
  • Revision ID: tarmac-20130321164246-to1k00qnvonuqt31
When the Geometry has changed in TextEntry QueueRefresh to Reset the Layout. Fixes: https://bugs.launchpad.net/bugs/1157329.

Approved by PS Jenkins bot, Marco Trevisan (Treviño).

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
      RecvKeyEvent(NUX_KEYUP, keysym, state, nullptr, 0);
182
182
    });
183
183
 
 
184
    geometry_changed.connect([this] (Area* /*area*/, Geometry& /*geo*/) {
 
185
      QueueRefresh(true, false);
 
186
    });
 
187
 
184
188
    begin_key_focus.connect(sigc::mem_fun(this, &TextEntry::RecvStartKeyFocus));
185
189
    end_key_focus.connect(sigc::mem_fun(this, &TextEntry::RecvEndKeyFocus));
186
190
 
810
814
    return _text_color;
811
815
  }
812
816
 
813
 
 
814
817
  void TextEntry::MainDraw()
815
818
  {
816
819