[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
usesmartlabel="multiline" ignores "align" attribute.  XML
Forum Index -> Development
Author Message
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi,

With CC 20160404, the following improvement was delivered.

"Swing Client: GRIDCOL-USESMARTLABEL Up to now you could only define “true” or “false” for this attribute. If defining “true” then the GRIDCOL-label is able to render certain text formats. - Now, only for the Swing client, you can define a third value “multiline”: in this case the text will be interpreted as simple HTML text and line breaks will be done if there is not sufficient space."

I have noticed that the attribute "align" is ignored when setting usesmartlabel="multiline". Until now, the workaround was to set the text in Html with a tag such as align='center'. But now, this is not suitable because we run a RISC version in parallel. In RISC, we set the attribute "multiline" to true. Unfortunately, this attribute is not effective for Swing.

Could you please either make the "align" attribute effective for usesmartlabel="multiline" or make the multiline attribute effective for Swing?

Regards, Daniel
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi Daniel,

this is something to be covered within your code - it is just too specific. The "<html>....</html>" way of passing label texts is something which is some "dirty trick" in Swing, so to have a compatibility layer to cover this is not really possible.

So please: in your code use HTTPSessionAccess.checkIfCurrentClientJavaTypeIsSwing() to find out if you are in Swing - and then arrange corresponding "<html>...</html>" around the label.

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team