on xenial help sign in
Explanation about heightToClip
commitd22667e445060854f8b7e7d2fddf11db8ca4341a authorAlbert Astals <albert.astals@canonical.com> dateTue 25 Jun 2013, 17:27 (13 years ago) parent4462ed5
1 file changed+7
plugins/ListViewWithPageHeader/listviewwithpageheader.cpp+7
plugins/ListViewWithPageHeader/listviewwithpageheader.cpp+7
@@ -70,6 +70,13 @@
7070 * that is used for the cases we need to show the sticky section item at
7171 * the top of the view.
7272 *
73+ * Each delegate item has a context property called heightToClip that is
74+ * used to communicate to the delegate implementation in case it has to
75+ * clip itself because of overlapping with the top sticky section item.
76+ * This is an implementation decision since it has been agreed it
77+ * is easier to implement the clipping in QML with this info than to
78+ * do it at the C++ level.
79+ *
7380 * Note that minYExtent and height are not always totally accurate, since
7481 * we don't have the items created we can't guess their heights
7582 * so we can only guarantee the values are correct when the first/last