Bug 106212 - dialog position
Summary: dialog position
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
5.2.4.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-27 09:33 UTC by Luis
Modified: 2017-03-03 08:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test document. (12.47 KB, application/vnd.oasis.opendocument.text)
2017-02-27 11:24 UTC, Luis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luis 2017-02-27 09:33:51 UTC
The position of dialogs executed from BASIC was centered in the application window (al least until 5.1.6.2).
The Behavior has changed 5.2.4.2.
Now the position of dialogs is the position registered in the IDE dialog editor and this is inconvenient.
I tested this in windows 7.
Comment 1 Xisco Faulí 2017-02-27 09:37:24 UTC Comment hidden (obsolete)
Comment 2 Luis 2017-02-27 10:32:28 UTC
The behavior change is present in this development build:

Version: 5.4.0.0.alpha0+
Build ID: a8538f0774bd0fabf6012d735d1e86b3ff1c291f
CPU threads: 2; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2017-02-23_23:42:53
Locale: es-ES (es_ES); Calc: group

I think thar the most usual desire is to want centered dialogs.
Comment 3 Luis 2017-02-27 11:22:54 UTC
Uploaded a test document with includes code for a workarround.

The writer document has 3 buttons:

- MsgBox: shows a standar message box (centered)

- Show dialog: shows a dialog with the default position (set in the dialog editor to x=10, y=10)

- Show centered dialog: shows the same dialog centered (position adjusted by program).
Comment 4 Luis 2017-02-27 11:24:03 UTC
Created attachment 131505 [details]
Test document.
Comment 5 Xisco Faulí 2017-03-02 10:59:41 UTC
Checking in

Version: 5.2.3.3
Build ID: d54a8868f08a7b39642414cf2c8ef2f228f780cf
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; 
Locale: es-ES (ca_ES.UTF-8); Calc: group

the dialog displayed when clicking in 'show dialog' is also displayed in the default position. I've also checked it in other versions and the behaviour is always the same, so it's the expected behaviour: If position isn't set, it will be displayed in the default position.
Closing as RESOLVED NOTABUG
Comment 6 Luis 2017-03-03 08:41:47 UTC
(In reply to Xisco Faulí from comment #5)
> Checking in
> 
> Version: 5.2.3.3
> Build ID: d54a8868f08a7b39642414cf2c8ef2f228f780cf
> CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; 
> Locale: es-ES (ca_ES.UTF-8); Calc: group
> 
> the dialog displayed when clicking in 'show dialog' is also displayed in the
> default position. I've also checked it in other versions and the behaviour
> is always the same, so it's the expected behaviour: If position isn't set,
> it will be displayed in the default position.
> Closing as RESOLVED NOTABUG

You're right. In Linux behavior is consistent: dialog is show in defined position.
This seems related to windows systems.