Bug 446534 - [10.10] Table/tree with column headers visible has issues
on OS X 10.10 Yosemite
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
index 518e5ee..3737096 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
@@ -2431,6 +2431,17 @@
 	((NSTableView) view).setBackgroundColor (nsColor);
 }
 
+void setBounds(int x, int y, int width, int height, boolean move, boolean resize) {
+	// TODO: add version check
+	/*
+	 * Bug on OSX 10.10: the header view hides the first row of the table view, initially.
+	 * Call tile() to force the header & table views to be placed correctly.
+	 */
+	super.setBounds (x, y, width, height, move, resize);
+	NSTableView widget = (NSTableView) view;
+	if (widget.headerView() != null) widget.tile ();
+}
+
 /**
  * Sets the order that the items in the receiver should 
  * be displayed in to the given argument which is described
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
index bbfd033..86f0450 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
@@ -2697,6 +2697,17 @@
 	((NSTableView) view).setBackgroundColor (nsColor);
 }
 
+void setBounds(int x, int y, int width, int height, boolean move, boolean resize) {
+	// TODO: add version check
+	/*
+	 * Bug on OSX 10.10: the header view hides the first row of the table view, initially.
+	 * Call tile() to force the header & table views to be placed correctly.
+	 */
+	super.setBounds (x, y, width, height, move, resize);
+	NSOutlineView widget = (NSOutlineView) view;
+	if (widget.headerView() != null) widget.tile ();
+}
+
 /**
  * Sets the order that the items in the receiver should 
  * be displayed in to the given argument which is described