Преглед на файлове

Enforce to recalculate row height when measuring the footer to get it correctly placed in the grid view

David A. Velasco преди 9 години
родител
ревизия
64ebb2c1d3
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/third_parties/in/srain/cube/GridViewWithHeaderAndFooter.java

+ 1 - 0
src/third_parties/in/srain/cube/GridViewWithHeaderAndFooter.java

@@ -99,6 +99,7 @@ public class GridViewWithHeaderAndFooter extends GridView {
         ListAdapter adapter = getAdapter();
         if (adapter != null && adapter instanceof HeaderViewGridAdapter) {
             ((HeaderViewGridAdapter) adapter).setNumColumns(getNumColumnsCompatible());
+            invalidateRowHeight();
             ((HeaderViewGridAdapter) adapter).setRowHeight(getRowHeight());
         }
     }