Issue 75889 - aquavcl01: Extended tooltips text truncated
Summary: aquavcl01: Extended tooltips text truncated
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 2.2
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: OOo 2.3
Assignee: msicotte
QA Contact: issues@porting
URL:
Keywords: aqua
Depends on:
Blocks:
 
Reported: 2007-03-30 00:21 UTC by sparcmoz
Modified: 2007-07-09 22:43 UTC (History)
4 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Extended tooltips -> only the first line does appear ( vcl API) (63.06 KB, text/plain)
2007-03-30 12:07 UTC, eric.bachard
no flags Details
same extended tooltip using native API (51.40 KB, text/plain)
2007-03-30 12:11 UTC, eric.bachard
no flags Details
proposed patch (662 bytes, text/plain)
2007-04-06 18:16 UTC, msicotte
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description sparcmoz 2007-03-30 00:21:07 UTC
m202 plus the first patch from issue 74392 (29March)
Activate the Extended Tooltips. When a tooltip is displayed it will be seen the
tooltips text is truncated. Possibly only the first line of text is displayed.
Comment 1 eric.bachard 2007-03-30 12:06:04 UTC
Issue confirmed. Probably a sallayout issue. 

Sébastien ? 
Comment 2 eric.bachard 2007-03-30 12:07:43 UTC
Created attachment 44057 [details]
Extended tooltips -> only the first line does appear ( vcl API)
Comment 3 eric.bachard 2007-03-30 12:09:26 UTC
ericb->sparcmoz

just wondering ... maybe mikesic simplified too much the list of events managed by help windows ?
Comment 4 eric.bachard 2007-03-30 12:11:08 UTC
Created attachment 44059 [details]
same extended tooltip using native API
Comment 5 sparcmoz 2007-03-30 12:46:33 UTC
sparcmoz->ericb2: no, I just checked and the issue is already there in the
unpatched m202. Mike's patch provides the stability needed to allow these issues
to be observed properly and reported.
Comment 6 sparcmoz 2007-03-30 13:02:40 UTC
here is the console output from both patched and unpatched m202. The full text
is reported here but not in the tooltip.

-->LayoutText - mnTextOfs:46 in 171 : Click to open a toolbar where you can
click a background color for a paragraph. The color is applied to the background
of the current paragraph or the selected paragraphs.
Comment 7 msicotte 2007-04-06 03:39:48 UTC
fails to draw the second line of the tooltip in ATSLayout::DrawText line 419
	theErr = ATSUDrawText( maATSULayout, mnTextOfs, mnTextLen,Long2Fix(aPos.X()),
Long2Fix(aPos.Y()));

with

theErr= -8792
which means (
http://developer.apple.com/documentation/Carbon/Reference/ATSUI_Reference/Reference/reference.html#//apple_ref/doc/uid/TP30000309-CH5g-RCM0008
)
The text range extends beyond the limits of the text layout object’s text range.
Comment 8 msicotte 2007-04-06 18:13:07 UTC
A change in salatslayout.cxx line 264 seems to fix this:

-		theErr = ATSUSetTextPointerLocation(maATSULayout, rArgs.mpStr, 0, runLength,
runLength);
+		theErr = ATSUSetTextPointerLocation(maATSULayout, rArgs.mpStr, runFrom,
runLength, runLength);

so far no side effects observed.

Patch to follow.
Comment 9 msicotte 2007-04-06 18:16:04 UTC
Created attachment 44258 [details]
proposed patch
Comment 10 sebastien.plisson 2007-04-07 05:14:29 UTC
This patch may cause problem in displaying multiline text, please testit with
the licence agreement screen.
Tht fact to force the runFrom to Zero is ok for all texts tha tare layouted in
one pass, for long text it will not work.
Comment 11 sparcmoz 2007-04-07 05:44:10 UTC
With the patch attached the licence text (in the first start wizard) looks
normal to the user, and the tooltips display correctly. I also tested with
HELP_DEBUG=true and the slotID are displayed. 

I notice in the console log that the text is processed in small chunks. I have
chopped the lines to fit here, but the full text is displayed in the log, and
displays correctly in the wizard.

-->AdjustLayout
-->FillDXArray
--->~ATSLayout
-->LayoutText - mnTextOfs:392 in 412 : This license, the Lesser General Public
-->InitGIA
Fin InitGIA
-->AdjustLayout
-->FillDXArray
--->~ATSLayout
-->LayoutText - mnTextOfs:0 in 431 : When we speak of free software, we are
-->InitGIA
Fin InitGIA
-->AdjustLayout
Comment 12 msicotte 2007-04-08 18:08:25 UTC
I did display the license text as suggested, and I found no issue with the
display of text.  (Intel MacBook)
Comment 13 pavel 2007-05-12 09:38:29 UTC
The last patch fixes much more than tooltips ;-)

E.g. in First Start wizard, multiline texts are displayed.

Please commit it.
Comment 14 msicotte 2007-05-12 20:37:43 UTC
last patch committed
Comment 15 eric.bachard 2007-05-13 23:06:54 UTC
Added issue to aquavcl01 cws
Comment 16 pavel 2007-06-23 13:03:35 UTC
Verified in aquavcl01. Tooltips are now shown correctly.
Comment 17 pavel 2007-06-28 07:03:25 UTC
Change target milestone to 2.3.
Comment 18 pavel 2007-07-09 22:13:20 UTC
Extended tips are OK in SRC680_m220.

Closing.
Comment 19 eric.bachard 2007-07-09 22:43:05 UTC
Works on with SRC680_m220

Closing