- height = 0;
- for(idx=row; idx <= endrow; idx++)
- height += m_rowHeights[idx];
- height += (endrow - row) * m_vgap; // add a vgap for every row spanned
+ if ( item->IsShown() )
+ {
+ item->GetPos(row, col);
+ item->GetEndPos(endrow, endcol);
+
+ height = 0;
+ for(idx=row; idx <= endrow; idx++)
+ height += m_rowHeights[idx];
+ height += (endrow - row) * m_vgap; // add a vgap for every row spanned