[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
linebreak tooltip  XML
Forum Index -> Development
Author Message
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

Hello,

when label is cut to size, there is a nice feature, which displays whole text as tooltip.

as you can see in attached screenshot, this tooltip can be long or even very long. Would it be possible to add a line break here?

Greetings,
Michael
[Thumb - umbruchtooltip.png]
 Filename umbruchtooltip.png [Disk] Download
 Description
 Filesize 96 Kbytes
 Downloaded:  232 time(s)

CaptainCasa

Power User
[Avatar]

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

Hi,

we can put the text into "<html></html>" (if not already done so), then the tooltip is wrapped.

Will be in next update, but next update will be available Thursday this week...

Regards, Björn

Björn Müller, CaptainCasa GmbH
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

this is generally a good thing.

but also this popup is triggered by client not by server side.
This tooltips should also add line breaks.
CaptainCasa

Power User
[Avatar]

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

...what I meant with "we" was "CaptainCasa". ;-)
We are the one to assign the tooltip (if text too long), so we will put "<html>" around...

Regards, Björn

Björn Müller, CaptainCasa GmbH
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

i just tested current version (20121210) and tooltip still has no line break. (as you can see in screenshot)

changelog says:
Improvement – Automated Label Tooltip now occupies several Lines
A tooltip is automatically shown in labels if the text exceeds the available width. This
text now is not shown as one long line of text but is split into lines if too long.

Greetings,
Michael



[Thumb - umbruchtooltip2.png]
 Filename umbruchtooltip2.png [Disk] Download
 Description
 Filesize 93 Kbytes
 Downloaded:  232 time(s)

CaptainCasa

Power User
[Avatar]

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

...??? In our scenarios there are wonderful line breaks - see attached image...

Björn

PS: does your label already contain HTML content? In this case we do not update the HTML content. May this be the reason?
[Thumb - tooltip.png]
 Filename tooltip.png [Disk] Download
 Description
 Filesize 3 Kbytes
 Downloaded:  416 time(s)


Björn Müller, CaptainCasa GmbH
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

Hello,

well the tooltip is not defined by us, but by captaincasa.
This is because of this feature request:
http://www.captaincasademo.com/forum/posts/list/1605.page

The text does not contain html already
e.g.
Code:
 -- configured database settings (at least activated with next deploy) --: 
 ConfDatebaseUrl: jdbc:oracle:thin:@ORA1O10U
 ConfDatabaseSchema: XNSG_PRODUCT_40
 ConfDatebaseUser: XNSG_PRODUCT_40
 ConfDatabaseConnectionPoolMinSize: 10
 ConfDatabaseConnectionPoolMaxSize: 300
 -- active database settings --: 
 DatebaseUrl: jdbc:oracle:thin:@ORA1O10U
 User: XNSG_PRODUCT_40
 Protocol: thin
 DatabaseProductName: Oracle
 DatabaseProductVersion: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
 With the Partitioning, OLAP, Data Mining and Real Application Testing options
 JDBCDriverName: Oracle JDBC driver
 JDBCDriverVersion: 10.2.0.4.0
 JDBCDriverMajorVersion: 10
 JDBCDriverMinorVersion: 2
 
CaptainCasa

Power User
[Avatar]

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

??? Sure you are using the newest version on client side ???
My screen looks as shown in the attachment.
Regards! Björn

PS: we can discuss, if line breaks should/should not be converted into <br> in addition...
[Thumb - tooltip2.png]
 Filename tooltip2.png [Disk] Download
 Description
 Filesize 13 Kbytes
 Downloaded:  422 time(s)


Björn Müller, CaptainCasa GmbH
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

at least java console output says i'am.

Code:
 2012:12:07 16:11:43:225 | 47     | INFO     | Version information:
 
 <version name="4_0_20121210"/> 
 
  .......... org.eclnt.client.version.Version>logVersion
 
cfuchs

Active

Joined: 21/01/2013 09:33:01
Messages: 16
Offline

I am picking up this topic as I have an issue regarding linebreaks with html content.

I am using a label containing HTML content (<html> ...text... </html>) as text (not as tooltip) because I want to have part of the (dynamic generated) text bold. When the text becomes to large, I want to cut the content similar to non-html content.

Is there an option I can use (label.addAttribute) to forbid the linebreak and to just cut the text, thus the label treats the html-content like non-html content?

Thanks in advance!
CaptainCasa

Power User
[Avatar]

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

Hi,

I am not aware of a possibility to do what you want...
I have not tried yet, what happens if you define this non-wrapping as part of your HTML's inner style definition (<html><span style='...'> ....</span></html>"). This may be one direction to check...

Regards, Björn

Björn Müller, CaptainCasa GmbH
cfuchs

Active

Joined: 21/01/2013 09:33:01
Messages: 16
Offline

Hallo Björn,

thanks for the hint with using html-code directly.

<html><span style="white-space:nowrap"> text </span></html>

solve my issue. It is not as nice as the non-content truncation (with ...), but should be enough for my case.

Thanks for the fast reply!
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team