Bug 568925

Summary: Label does not support the same alignment as CLabel
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, Lars.Vogel
Version: 4.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
CLabel Screenshot
none
Label none

Description Lars Vogel CLA 2020-11-18 10:00:41 EST
Created attachment 284805 [details]
CLabel Screenshot

CLabel allows to align its content while Label does not do the same. Is this a bug?

Test with CLabel:

CLabel deleteProfile = new CLabel(container, SWT.CENTER | SWT.VERTICAL);
		deleteProfile.setLayoutData(GridDataFactory.fillDefaults().align(SWT.END, SWT.FILL).grab(false, true).hint(25, SWT.DEFAULT).create());deleteProfile.setText("\uD83D\uDDD1\uFE0F");
		

Label deleteProfile1 = new Label(container, SWT.CENTER | SWT.VERTICAL);
		deleteProfile1.setLayoutData(GridDataFactory.fillDefaults().align(SWT.END, SWT.FILL).grab(false, true).hint(25, SWT.DEFAULT).create());
deleteProfile1.setText("\uD83D\uDDD1\uFE0F");


I attach screenshot from a larger code base on Windows.
Comment 1 Lars Vogel CLA 2020-11-18 10:01:05 EST
Created attachment 284806 [details]
Label
Comment 2 Alexander Kurtakov CLA 2020-11-18 10:27:42 EST
Does it look the saem on Linux? Can you share pure swt snippet too?