Issue 75020 - middle part of the offscreen native button drawn few pixels off
Summary: middle part of the offscreen native button drawn few pixels off
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: MacOSX (show other issues)
Version: 680m203
Hardware: All Mac OS X, all
: P4 Trivial (vote)
Target Milestone: OOo 2.3
Assignee: eric.bachard
QA Contact: issues@porting
URL:
Keywords: aqua
Depends on:
Blocks:
 
Reported: 2007-03-01 13:08 UTC by pavel
Modified: 2007-07-09 22:40 UTC (History)
3 users (show)

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


Attachments
this patch seems to work (943 bytes, patch)
2007-05-26 16:28 UTC, eric.bachard
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2007-03-01 13:08:45 UTC
Hi,

the current aquavcl01 has a small issue in About window's Ctrl+SDT.

http://tmp.janik.cz/OpenOffice.org/MacOSX/About-nativebutton/Picture%205.png

The middle part of the button is drawn few pixels down compared to the left and right parts of the button.
Comment 1 eric.bachard 2007-03-01 13:14:35 UTC
Maybe this issue occur because of bad dimensions : height is forced, and may cause such issue.

I'll investigate 
Comment 2 eric.bachard 2007-03-01 13:14:57 UTC
set target 
Comment 3 pavel 2007-05-24 06:19:58 UTC
After looking more on this, I think this is also context-related issue.

This doesn't happen after export SAL_NO_NWF=1.

When you move your mouse pointer over the middle part of the button, the text rolling up is distorted. 
When you do not move mouse over the shifted middle part of the button, the text is OK.

Any idea?
Comment 4 pavel 2007-05-25 07:18:50 UTC
With pl's "drawing into bitmap context only and blit to the screen only when needed" prototype, this 
behavior is shown there as well - all buttons have the middle part of them a bit low - few pixels.

Maybe there is a bug in the functions we use with the connection to bitmap contexts? ;-)
Comment 5 eric.bachard 2007-05-26 16:28:56 UTC
Created attachment 45418 [details]
this patch seems to work
Comment 6 pavel 2007-05-26 17:39:21 UTC
Yes, it fixed this particular problem.

Thanks.
Comment 7 eric.bachard 2007-05-26 21:55:46 UTC
fixed in aquavcl01
Comment 8 pavel 2007-06-20 13:16:07 UTC
Verified. OK in aquavcl01.
Comment 9 pavel 2007-06-28 11:10:19 UTC
Set target to 2.3.
Comment 10 eric.bachard 2007-07-09 22:40:17 UTC
Still ok with SRC680_m220

Closing