diff options
Diffstat (limited to 'viewGridNavigator.cpp')
-rw-r--r-- | viewGridNavigator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/viewGridNavigator.cpp b/viewGridNavigator.cpp index 017c448..acae152 100644 --- a/viewGridNavigator.cpp +++ b/viewGridNavigator.cpp @@ -121,13 +121,13 @@ void cViewGridNavigator::SetGridElementData(cGridElement *obj) // fill data obj->SetPosition(x, y); obj->AddTokens(m_pGrid, true, std::bind(&cViewGridNavigator::ReDraw, this, std::placeholders::_1)); - m_pGrid->SetGrid(obj->GridElementId(), x, y, width, height); - obj->InitFinished(); // set GridDimensions m_pGrid->AddIntToken("columns", m_columns); m_pGrid->AddIntToken("rows", m_rows); m_pGrid->AddIntToken("position", obj->AbsolutePosition); m_pGrid->AddIntToken("totalcount", m_vElements.size()); + m_pGrid->SetGrid(obj->GridElementId(), x, y, width, height); + obj->InitFinished(); } else { obj->SetPosition(x, y); m_pGrid->MoveGrid(obj->GridElementId(), x, y, width, height); |