Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359575 - [RBD]FontWeight on DataGrid doesn't work
Summary: [RBD]FontWeight on DataGrid doesn't work
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Thomas Wu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-30 10:57 EDT by broy2 CLA
Modified: 2017-02-23 14:14 EST (History)
3 users (show)

See Also:


Attachments
DataGrid (74.65 KB, image/png)
2011-09-30 10:57 EDT, broy2 CLA
no flags Details
fontWeight (122.90 KB, image/png)
2011-09-30 11:10 EDT, broy2 CLA
no flags Details
fontWeight (114.26 KB, image/png)
2011-10-08 09:40 EDT, broy2 CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description broy2 CLA 2011-09-30 10:57:35 EDT
Created attachment 204392 [details]
DataGrid

Drop a DataGrid on a RUIHandler.
It doesn't display correctly.
And changing the fontSize and fontWeight doesn't do anything.
Screen shot attached.
EDT is on the right, RBD on the left,
Comment 1 broy2 CLA 2011-09-30 11:10:18 EDT
Created attachment 204393 [details]
fontWeight
Comment 2 broy2 CLA 2011-09-30 11:15:35 EDT
I've rolled the display size problem into Bug 359447.
When the dataGrid displays correctly, the fontSize works.
But the fontWeight still doesn't work.
Screen shot attached.
Comment 3 Huang Ji Yong CLA 2011-10-08 05:20:00 EDT
The fontWeight works except the cells in the header. This behavior is the same as RBD. Do you think it's a defect?
Comment 4 broy2 CLA 2011-10-08 09:40:09 EDT
Created attachment 204800 [details]
fontWeight

The exact same code is shown in the Design view of EDT and RBD.
The are very different in appearance.
The RBD view looks correct.

handler myRUIhandler type RUIhandler {initialUI = [ ui ],onConstructionFunction = start, cssFile="css/myRUIproject.css", title="myRUIhandler"}
	
	ui GridLayout{ columns = 3, rows = 4, cellPadding = 4, children = [ TextLabel3, TextLabel2, TextLabel1, TextLabel, DataGrid1, Button, Button1, DataGrid ] };
	DataGrid DataGrid{ layoutData = new GridLayoutData{ row = 1, column = 1 },
		behaviors = [ ],
		headerBehaviors = [ ],
		columns = [
			new DataGridColumn{name = "field1", displayName = "Column 1 Header", width=120},
			new DataGridColumn{name = "field2", displayName = "Column 2 Header", width=120}
		],
		data = [
			new Dictionary { field1 = "Row 1, Column 1", field2 = "Row 1, Column 2"},
			new Dictionary { field1 = "Row 2, Column 1", field2 = "Row 2, Column 2"}
		]
	};
	Button DojoButton{ layoutData = new GridLayoutData{ row = 3, column = 1 }, text = "Button" };
	Button1 Button{ layoutData = new GridLayoutData{ row = 4, column = 1 }, text="Button",
		fontWeight = "bold" };
	DataGrid1 DataGrid{ layoutData = new GridLayoutData{ row = 2, column = 1 },
		behaviors = [ ],
		headerBehaviors = [ ],
		columns = [
			new DataGridColumn{name = "field1", displayName = "Column 1 Header", width=120},
			new DataGridColumn{name = "field2", displayName = "Column 2 Header", width=120}
		],
		data = [
			new Dictionary { field1 = "Row 1, Column 1", field2 = "Row 1, Column 2"},
			new Dictionary { field1 = "Row 2, Column 1", field2 = "Row 2, Column 2"}
		],
		fontWeight = "bold"
	};
	TextLabel TextLabel{ layoutData = new GridLayoutData{ row = 1, column = 2 }, text = "fontweight = none" };
	TextLabel1 TextLabel{ layoutData = new GridLayoutData{ row = 2, column = 2 }, text = "fontweight = bold",
		fontWeight = "bold" };
	TextLabel2 TextLabel{ layoutData = new GridLayoutData{ row = 3, column = 2 }, text = "fontweight = none" };
	TextLabel3 TextLabel{ layoutData = new GridLayoutData{ row = 4, column = 2 }, text = "fontweight = bold",
		fontWeight = "bold" };
	
	function start()
	end	
end
Comment 5 broy2 CLA 2011-10-08 10:08:27 EDT
I just got the 201110080901 build, and the fontWeight is working now.
Comment 6 Lisa Lasher CLA 2011-11-08 13:22:13 EST
Deferring to 1.0 - this is a low priority defect that also occurs in RBD
Comment 7 fahua jin CLA 2011-12-16 02:11:37 EST
Fixed indirectly.

Thomas, could you please assign people to verify the defect? Thanks.
Comment 8 Lisa Lasher CLA 2012-01-13 14:25:08 EST
Thomas, please have someone verify this fix.  It was originally opened by Brenda.
Comment 9 Huang Ji Yong CLA 2012-02-20 00:24:39 EST
Verified in build  0.8.0.v201202190901-1Co-FjuJ6QMNRcrynsZh8h8C