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-08-25 05:22 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 ?
Comment 10 Dorange-Pattoret Didier 2019-08-11 09:23:48 UTC
Hello,
Now I use Ubuntu 19.04 and LibreOffice 6.3.0.4
The bug comes with Ubuntu Gnome but not with Ubuntu Mate.
It seems to be ok for other OS (Windows and Mac OSX).
Comment 11 Dorange-Pattoret Didier 2019-08-11 09:30:33 UTC
Hello,
I'm using Gtk 3.0
Comment 12 Xisco Faulí 2019-08-12 14:13:59 UTC
(In reply to Dorange-Pattoret Didier from comment #11)
> Hello,
> I'm using Gtk 3.0

Could you please paste the info from Help - about LibreOffice ?
Comment 13 Dorange-Pattoret Didier 2019-08-12 16:03:00 UTC
Version: 6.3.0.4
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
Threads CPU : 4; OS : Linux 5.0; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded

I point out that the bug comes with 6.2 and now 6.3.0.4 only with Ubuntu Gnome, not with Ubuntu mate ...

Thanks for your help.
Comment 14 QA Administrators 2019-08-19 07:09:49 UTC Comment hidden (obsolete)
Comment 15 Dorange-Pattoret Didier 2019-08-25 05:22:14 UTC
Hello,

I confirm the bug with Ubuntu 19.04 and

1) Version: 6.3.2.0.0+
Build ID: ff3cfee4ebfcb412f54f17ffccc95512fdc15c8e
CPU threads: 4; OS: Linux 5.0; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:libreoffice-6-3, Time: 2019-08-20_14:33:16
Locale: en-US (fr_FR.UTF-8); UI-Language: en-US
Calc: threaded

2) Version: 6.4.0.0.alpha0+
Build ID: 2bed8af91fc2654b9ed2432f969d32d5741a529b
Threads CPU : 4; OS : Linux 5.0; UI Render : par défaut; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-08-21_09:30:10
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded