https://bugs.documentfoundation.org/show_bug.cgi?id=117713
Bug ID: 117713
Summary: UnoControlDialog is displayed in the wrong size
Product: LibreOffice
Version: 6.0.3.2 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Description:
If the height and width of a UnoControlDialog are too small, the dialog is
displayed in a fixed, too large size.
I could observe the following Bug for LO 6.0.3/6.0.4 under Ubuntu 18.04 (Ubuntu
is installed in VMWare), but not under MS Windows
Example 1:
--------------------------------------------
The following works:
Sub fortschrittsanzeige()
wv_fortschritt_model =
CreateUnoService("com.sun.star.awt.UnoControlDialogModel")
With wv_fortschritt_model
.setPropertyValue("Width", 400)
.setPropertyValue("Height", 400)
.SetPropertyValue("Title","only testing")
End With
oWin2 = CreateUnoService("com.sun.star.awt.Toolkit")
wv_fortschritt = CreateUnoService("com.sun.star.awt.UnoControlDialog")
With wv_fortschritt
.setModel(wv_fortschritt_model)
.createPeer(oWin2, null)
.setVisible(True)
End With
'keep dialog visible for testing:
Msgbox ""
wv_fortschritt.setVisible(False)
End Sub
but now reduce the values for height and width and the dialog is displayed too
large:
Sub fortschrittsanzeige()
wv_fortschritt_model =
CreateUnoService("com.sun.star.awt.UnoControlDialogModel")
With wv_fortschritt_model
.setPropertyValue("Width", 40)
.setPropertyValue("Height", 20)
.SetPropertyValue("Title","only testing")
End With
oWin2 = CreateUnoService("com.sun.star.awt.Toolkit")
wv_fortschritt = CreateUnoService("com.sun.star.awt.UnoControlDialog")
With wv_fortschritt
.setModel(wv_fortschritt_model)
.createPeer(oWin2, null)
.setVisible(True)
End With
'keep dialog visible for testing:
Msgbox ""
wv_fortschritt.setVisible(False)
End Sub
Example 2:
--------------------------------------------
-open the basic IDE
-insert a basic dialog
-set in the properties of the basic dialog for the height 20 and for the width
40
-start the dialog
You can see that the dialog is displayed too large.
Steps to Reproduce:
-open the basic IDE
-insert a basic dialog
-set in the properties of the basic dialog for the height 20 and for the width
40
-start the dialog
Actual Results:
You can see that the dialog is displayed too large.
Expected Results:
Show the dialog in the correct size
Reproducible: Always
User Profile Reset: Yes
Additional Info:
User-Agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs