Closed Bug 276278 Opened 20 years ago Closed 20 years ago

[BeOS] Dropdown boxes are dislocated

Categories

(Core Graveyard :: GFX: BeOS, defect, P1)

x86
BeOS

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Niels.Reedijk, Assigned: Niels.Reedijk)

References

Details

Attachments

(1 file)

Whenever you select dropdown boxes or menus, they are in the wrong location. It
seems that the drawing functions are fed absolute screen locations, while they
are interpreted as local co-ordinates.
Status: NEW → ASSIGNED
Summary: Dropdown boxes are dislocated → [BeOS] Dropdown boxes are dislocated
Severity: normal → major
Priority: -- → P1
*** Bug 276878 has been marked as a duplicate of this bug. ***
From the weblog by sergei_d:
"Shortly. Before we handled Pop-Up window coordinates in Move/Resize methods in
quite special manner, converting it from coorinates, provided by Mozilla to
screen coodrinates:
BPoint p = mBorderlessParent->ConvertToScreen(BPoint(aX,aY));
aX = (nscoord)p.x;
aY = (nscoord)p.y;

It seems that now Mozilla view manager handles it by self, so that part seems
unnecessary. And with removing this special case:
if (mWindowType == eWindowType_popup && mBorderlessParent)
from nsresult nsWindow::Move(PRInt32 aX, PRInt32 aY)
you will get proper results."
Attachment #170529 - Flags: review?(sergei_d)
Comment on attachment 170529 [details] [diff] [review]
The fix as proposed by fyysik

r=sergei_d@fi.tartu.ee
Pure port-patch, no sr required
Attachment #170529 - Flags: review?(sergei_d) → review+
Committed by timeless.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: