Commit 43da1f92c331388370053a5f8e16cdd6f0d1bdc2
1 parent
ae3d2550
Fix the builder demo to activate ItemView layout properly
Change-Id: I566306c6ab23c18cf2cdb1c210f798575e794c50
Showing
1 changed file
with
3 additions
and
5 deletions
examples/builder/examples.cpp
| ... | ... | @@ -293,8 +293,6 @@ public: |
| 293 | 293 | |
| 294 | 294 | mItemView.AddLayout( *mLayout ); |
| 295 | 295 | |
| 296 | - Vector3 size(stage.GetSize()); | |
| 297 | - mItemView.ActivateLayout(0, size, 0.0f/*immediate*/); | |
| 298 | 296 | mItemView.SetKeyboardFocusable( true ); |
| 299 | 297 | |
| 300 | 298 | mFiles.clear(); |
| ... | ... | @@ -362,9 +360,9 @@ public: |
| 362 | 360 | |
| 363 | 361 | SetTitle("Select"); |
| 364 | 362 | |
| 365 | - // Itemview renderes the previous items unless its scrolled. Not sure why at the moment so we force a scroll | |
| 366 | - mItemView.ScrollToItem(0, 0); | |
| 367 | - | |
| 363 | + // Activate the layout | |
| 364 | + Vector3 size(stage.GetSize()); | |
| 365 | + mItemView.ActivateLayout(0, size, 0.0f/*immediate*/); | |
| 368 | 366 | } |
| 369 | 367 | |
| 370 | 368 | void ExitSelection() | ... | ... |