Bug 123564 - Dialogs are not at the right position with Execute method
Summary: Dialogs are not at the right position with Execute method
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks:
 
Reported: 2019-02-19 08:14 UTC by Dorange-Pattoret Didier
Modified: 2019-03-14 18:26 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
File with macros for testing (12.12 KB, application/vnd.oasis.opendocument.text)
2019-02-23 06:25 UTC, Dorange-Pattoret Didier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dorange-Pattoret Didier 2019-02-19 08:14:00 UTC
Description:
Under Linux only : I can't set the position of dialogs if I use the execute.
It ran fun before LO 6.2 

Steps to Reproduce:
1. Create a dialog1 named dialog

2. Use the code below :
Sub MaBoite 
    BasicLibraries.LoadLibrary("Tools") 
    oDialog1 = LoadDialog("Standard", "Dialog1")
    oDialog1.Model.PositionX = 1000 
    oDialog1.Execute()     
End Sub 


3. The code bellow works fine
Sub MaBoite1 
    BasicLibraries.LoadLibrary("Tools") 
    oDialog1 = LoadDialog("Standard", "Dialog1")   
    oDialog1.Model.PositionX = 1000
    oDialog1.Visible = True
    Do 
    	Wait 50
    Loop 
End Sub 

Actual Results:
The dialog appear in the middle of the screen

Expected Results:
Dialog at the right part of the screen


Reproducible: Always


User Profile Reset: No



Additional Info:
It's a regression ...

Version: 6.2.0.3
Build ID: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
Threads CPU : 4; OS : Linux 4.18; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 1 raal 2019-02-21 21:24:47 UTC
Hello,

Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document.
(Please note that the attachment will be public, remove any sensitive information before attaching it.)
How can I eliminate confidential data from a sample document?
https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F
Thank you
Comment 2 Dorange-Pattoret Didier 2019-02-23 06:25:30 UTC
Created attachment 149538 [details]
File with macros for testing
Comment 3 Dorange-Pattoret Didier 2019-02-23 06:32:52 UTC
Hello,
I made new tests.
The bug comes under Ubuntu.
But under Rosa Linux (KDE), the macro works right with Endexceute method and wrong with SetVisible method.
Comment 4 Dorange-Pattoret Didier 2019-02-23 06:36:50 UTC
(In reply to Dorange-Pattoret Didier from comment #3)
> Hello,
> I made new tests.
> The bug comes under Ubuntu.
> But under Rosa Linux (KDE), the macro works right with Endexceute method and
> wrong with SetVisible method.

Sorry : works fine with Execute method and wrong with SetVisible ...
Comment 5 Dorange-Pattoret Didier 2019-02-23 07:56:15 UTC
Hello,
I do'nt understand why you do not confirm this bug.
Once Ubuntu 18.10 dialogs don't get the right position with Execute method,
Once RosaLinux KDE they don't get the right position with SetVisible method ...
Comment 6 cornosier 2019-02-23 15:24:43 UTC
I confirm with Fedora29 / kde with version 6.1.5.2 of the distribution and version dev 6.2.2.0.0+
the dialogs are centered

Gérard
Comment 7 Dorange-Pattoret Didier 2019-02-24 06:51:54 UTC
Additional explanations :
Dialog should appear full right of the screen.
The main method to display a dialog is Execute.
With Ubuntu gnome, for example, they are displaying in the center of the screen : it's wrong ...
Comment 8 Dorange-Pattoret Didier 2019-02-24 15:21:54 UTC
I made additional tests : no bug with MacOsX and Windows.
Problems come only under Linux.
Best regards.
Comment 9 Xisco Faulí 2019-03-14 18:26:01 UTC
(In reply to cornosier from comment #6)
> I confirm with Fedora29 / kde with version 6.1.5.2 of the distribution and
> version dev 6.2.2.0.0+
> the dialogs are centered
> 
> Gérard

I can't reproduce it in

Version: 6.3.0.0.alpha0+
Build ID: c196d70337f6b755cfc4c34beda05554c6fab114
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

Maybe KDE only ? OTOH, the reporter reproduced it in GTK3.

@Dorange-Pattoret Didier, which GTK version you're using ?