Issue 73412 - Controls gets wrong position in Dialog Editor
Summary: Controls gets wrong position in Dialog Editor
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: scripting (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: ab
QA Contact: Unknown
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2007-01-12 13:06 UTC by ab
Modified: 2013-02-24 21:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ab 2007-01-12 13:06:01 UTC
Create a new dialog in OOo Dialog Editor.
Create a Button directly in the upper left corner below the dialog title bar.
(PositionX=PositionY=0)
Close Dialog Editor
Reopen Dialog Editor for the new dialog.
The button now is placed at a wrong position, although still PositionX=PositionY=0
Moving the button slightly change PositionX, PositionY values to the displayed
position

I've debugged this with aw and he found the reason in basctl/source/dlgedobj.cxx
DlgEdObj::getFormDeviceInfo(...). At the moment the Dialog Editor view is opened,
_rForm.GetUnoControl() does not return a control. The problem seems to be that
the fallback mechanism GetTemporaryControlForWindow does not provide the
correct Insets causing the control to be placed at the wrong position.
Comment 1 Frank Schönheit 2007-01-14 19:40:43 UTC
accepting
Comment 2 Frank Schönheit 2007-01-14 20:00:37 UTC
pretty dump bug: The temporary control was retrieved for the control itself,
while the one for the dialog was needed.
fixed in CWS dba22c
basctl/source/dlged/dlgedobj.cxx, 1.43.18.1
Comment 3 Frank Schönheit 2007-01-17 12:08:59 UTC
fs->ab: please verify in CWS dba22c
Comment 4 ab 2007-01-23 09:11:59 UTC
Ok in CWS dba22c -> Verified
Comment 5 ace_dent 2008-05-16 03:30:53 UTC
This Issue is 'Verified' and not updated in 1yr+, so Closing.
A Closed Issue is a Happy Issue (TM).

Regards,
Andrew
 
Cleaning-up and Closing old Issues as part of:
~ The Grand Bug Squash, pre v3 ~