Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2019-05-23 11:11:09 +0000
committerLakshmi Shanmugam2019-05-23 11:11:09 +0000
commit421ac70ec4fa4e87c23aa113906fefda3630552a (patch)
tree5b430e3b7b773750d95cc1aaba648b5c3a26ca75
parenta87191d336cde297efb11a30c5b6fc9363f33dd6 (diff)
downloadeclipse.platform.swt-421ac70ec4fa4e87c23aa113906fefda3630552a.tar.gz
eclipse.platform.swt-421ac70ec4fa4e87c23aa113906fefda3630552a.tar.xz
eclipse.platform.swt-421ac70ec4fa4e87c23aa113906fefda3630552a.zip
Bug 547512: [Mac] Header separator line not drawn for Table/Tree in
eclipse Change the header height only if the height to be set is not smaller than header height (If not, that the separator line below the header is not drawn). Change-Id: I00070615945e8dc217627665a0d4a1da9150b6fd
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java6
2 files changed, 8 insertions, 4 deletions
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 64d0ae6842..fc32bd96be 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
@@ -2783,8 +2783,10 @@ void setItemHeight (Image image, NSFont font, boolean set) {
widget.setRowHeight (height);
if (headerView != null) {
NSRect frame = headerView.frame();
- frame.height = height;
- headerView.setFrame(frame);
+ if (frame.height < height) {
+ frame.height = height;
+ headerView.setFrame(frame);
+ }
}
}
}
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 171707538d..3462e4e97b 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
@@ -3115,8 +3115,10 @@ void setItemHeight (Image image, NSFont font, boolean set) {
widget.setRowHeight (height);
if (headerView != null) {
NSRect frame = headerView.frame();
- frame.height = height;
- headerView.setFrame(frame);
+ if (frame.height < height) {
+ frame.height = height;
+ headerView.setFrame(frame);
+ }
}
}
}

Back to the top