https://bugs.documentfoundation.org/show_bug.cgi?id=112590

--- Comment #45 from t...@tim-passingham.co.uk ---
(In reply to robert from comment #42)
> You could use the following workaround, started by a macro in every form:
> SUB Window64
> oFrame = StarDesktop.getCurrentFrame()
> oWin = oFrame.getContainerWindow()
> oWin.setPosSize(0,0,600,400,15)
> END SUB
> 
> First value: x-start (Flag=1)
> Second value: y-start (Flag=2)
> Third value: width (Flag=4)
> Fourth value: height (Flag=8)
> Fifth value: Flag for all 1+2+4+8 = 15
> 
> You could also set
> oWin.IsMaximized = true
> That seems to be the behaviour you get if I understand the bug-report right.
Thanks for this.  I've managed to work this into my set of macros so that I set
the size and position of the form I use most, which is a great help.

Except, with ubuntu 18.04 gtk3 the setPosSize behaves very badly.  Most
settings of position simply don't work.  With gtk2, they usually work, except
that, very strangely, only every other time a form is opened.  This is bizarre,
to say the least, and I didn't beleive it either.  So I removed gtk2 as well,
and ran plain:

Version: 6.1.3.1
Build ID: 1:6.1.3~rc1-0ubuntu0.18.04.1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: x11; 
Locale: en-GB (en_GB.UTF-8); Calc: group threaded

and it all works every time.   

I thought these gtk oddities would be ubuntu issues, but 6.1.4 from Libreoffice
has the same problems (it uses gtk2 by default).  The position is often wrong,
and sometimes the setPosSize is just ignored.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to