Author |
Message |
03/12/2012 12:51:38
|
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
|
Filename |
umbruchtooltip.png |
Download
|
Description |
|
Filesize |
96 Kbytes
|
Downloaded: |
232 time(s) |
|
|
|
03/12/2012 19:34:33
|
CaptainCasa
Power User
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 |
|
|
03/12/2012 22:22:16
|
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.
|
|
|
04/12/2012 05:41:48
|
CaptainCasa
Power User
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 |
|
|
07/12/2012 15:10:53
|
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
|
Filename |
umbruchtooltip2.png |
Download
|
Description |
|
Filesize |
93 Kbytes
|
Downloaded: |
232 time(s) |
|
|
|
07/12/2012 15:25:31
|
CaptainCasa
Power User
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?
|
Filename |
tooltip.png |
Download
|
Description |
|
Filesize |
3 Kbytes
|
Downloaded: |
416 time(s) |
|
Björn Müller, CaptainCasa GmbH |
|
|
07/12/2012 15:31:32
|
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
|
|
|
07/12/2012 15:59:01
|
CaptainCasa
Power User
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...
|
Filename |
tooltip2.png |
Download
|
Description |
|
Filesize |
13 Kbytes
|
Downloaded: |
422 time(s) |
|
Björn Müller, CaptainCasa GmbH |
|
|
07/12/2012 16:17:14
|
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
|
|
|
10/04/2014 13:32:14
|
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!
|
|
|
10/04/2014 13:40:48
|
CaptainCasa
Power User
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 |
|
|
10/04/2014 14:15:10
|
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!
|
|
|
|