You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pi...@apache.org on 2020/10/21 12:11:16 UTC
[royale-asjs] branch develop updated: MXRoyale: Add headerHeight
stub to DataGrid
This is an automated email from the ASF dual-hosted git repository.
piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 10d9788 MXRoyale: Add headerHeight stub to DataGrid
10d9788 is described below
commit 10d9788d2402f01c4d6645cca08ec531aee2a397
Author: Piotr Zarzycki <pi...@gmail.com>
AuthorDate: Wed Oct 21 14:10:59 2020 +0200
MXRoyale: Add headerHeight stub to DataGrid
---
.../src/main/royale/mx/controls/DataGrid.as | 38 ++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
index 329cc05..fb4c4da 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
@@ -800,6 +800,44 @@ public class DataGrid extends DataGridListBase/*ListBase*/ implements IDataGrid/
*/
public var sortableColumns:Boolean = true;
+ /**
+ * @private
+ * Storage for the headerHeight property.
+ */
+ /* mx_internal*/ private var _headerHeight:Number = 22;
+
+ [Bindable("resize")]
+ //[Inspectable(category="General", defaultValue="22")]
+
+ /**
+ * The height of the header cell of the column, in pixels.
+ * If set explicitly, that height will be used for all of
+ * the headers. If not set explicitly,
+ * the height will based on style settings and the header
+ * renderer.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get headerHeight():Number
+ {
+ return _headerHeight;
+ }
+
+ /**
+ * @private
+ */
+ public function set headerHeight(value:Number):void
+ {
+ _headerHeight = value;
+ /* _explicitHeaderHeight = true;
+ itemsSizeChanged = true;
+
+ invalidateDisplayList();*/
+ }
+
[Inspectable(environment="none")]