Fix grid layout defaults 89/187789/1
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Tue, 28 Aug 2018 10:01:37 +0000 (11:01 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Tue, 28 Aug 2018 10:01:53 +0000 (11:01 +0100)
Change-Id: I6108a67192b01b06d62f8df0bdbbf1426aac5fc6

dali-toolkit/devel-api/layouting/layout-item-impl.cpp
dali-toolkit/internal/layouting/grid-impl.cpp

index ecf86b3..71c0d46 100644 (file)
@@ -173,7 +173,7 @@ void LayoutItem::Measure( MeasureSpec widthMeasureSpec, MeasureSpec heightMeasur
 #if defined(DEBUG_ENABLED)
     std::ostringstream o;
     o<<widthMeasureSpec<<","<<heightMeasureSpec;
-    DALI_LOG_INFO( gLayoutFilter, Debug::Concise, "Calling %s OnMeasure( %s )\n", Actor::DownCast(GetOwner()).GetName().c_str(), o.str().c_str());
+    DALI_LOG_INFO( gLayoutFilter, Debug::Concise, "LayoutItem::Measure Calling %s OnMeasure( %s )\n", Actor::DownCast(GetOwner()).GetName().c_str(), o.str().c_str());
 #endif
     OnMeasure( widthMeasureSpec, heightMeasureSpec );
     mImpl->ClearPrivateFlag( Impl::PRIVATE_FLAG_MEASURE_NEEDED_BEFORE_LAYOUT );
index a83ed99..b8e2b22 100644 (file)
@@ -50,8 +50,8 @@ Grid::Grid()
 : LayoutGroup(),
   mTotalHeight( 0 ),
   mTotalWidth( 0 ),
-  mNumColumns( AUTO_FIT ),
-  mNumRows( AUTO_FIT ),
+  mNumColumns( 1 ),
+  mNumRows( 1 ),
   mRequestedColumnWidth( 0 ),
   mRequestedNumColumns( AUTO_FIT )
 {