Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208766 - app-office/openoffice-2.3.1 exhibits strange menu placement behavior
Summary: app-office/openoffice-2.3.1 exhibits strange menu placement behavior
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Office Team
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-03 17:08 UTC by awtand
Modified: 2008-10-20 08:35 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Emerge theme.cfg (default fluxbox theme), in which openoffice-gtk menus are misplaced (theme.cfg,5.40 KB, text/plain)
2008-05-27 17:40 UTC, Heitor Omar Passos
Details
Affinity theme.cfg (fluxbox theme), in which openoffice-gtk menus are correctly placed (theme.cfg,6.70 KB, text/plain)
2008-05-27 17:42 UTC, Heitor Omar Passos
Details
the position of the dropdown menu ist wrong (openoffice_menu_position.png,86.76 KB, image/png)
2008-06-05 21:17 UTC, Mario Bachmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description awtand 2008-02-03 17:08:18 UTC
The menu would appear on the upper right hand corner of the window everytime I click on the name of the menu.
Granted that it is a cosmetic issue, I still find it annoying that I'm unable to use GTK OpenOffice w/o having this kind of problem.
It seems that I'm not alone on this issue because the same problem has been filed to Debian Bug report, however no one has responded to the bug yet.
The URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=389145

Reproducible: Always

Steps to Reproduce:
1. [ebuild  R    ] app-office/openoffice-2.3.1  USE="cairo cups gstreamer gtk java pam -binfilter -dbus -debug -eds -firefox -gnome -kde -ldap -mono -odk -seamonkey -sound -webdav -xulrunner" LINGUAS="en -af -ar -as_IN -be_BY -bg -bn -br -bs -ca -cs -cy -da -de -dz -el -en_GB -en_US -en_ZA -eo -es -et -fa -fi -fr -ga -gl -gu_IN -he -hi_IN -hr -hu -it -ja -km -ko -ku -lt -lv -mk -ml_IN -mr_IN -nb -ne -nl -nn -nr -ns -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sh_YU -sk -sl -sr_CS -ss -st -sv -sw_TZ -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB
2. export OOO_FORCE_DESKTOP=gnome soffice
Actual Results:  
Everytime I click on the pulldown menu, it would appear on the upper right hand corner of the window.

Expected Results:  
The menu should appear below the name of the menu.

Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Timestamp of tree: Thu, 31 Jan 2008 21:16:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LANG="en_US.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa amd64 amr audacious berkdb bitmap-fonts bzip2 cairo cddb cdparanoia cdr cli cpudetection cracklib crypt cups dga divx dri dts dv dvd dvdnav dvdr dvdread foomaticdb fortran ftp gdbm gpm gstreamer hddtemp iconv ipv6 isdnlog java jpeg live mad midi mmx mp2 mp3 msn mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png pppd python quicktime readline realmedia reflection sdl session spl sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vim-syntax vorbis wavpack wma wmf wmp xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2008-03-02 22:55:40 UTC
Could you provide a screenshot of this problem. Never seen this happen myself, maybe a gtk-theming issue? (just a wild shot)
Comment 2 awtand 2008-03-05 16:32:07 UTC
(In reply to comment #1)
> Could you provide a screenshot of this problem. Never seen this happen myself,
> maybe a gtk-theming issue? (just a wild shot)
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=ooffice_right_aligned_menu.png;att=1;bug=389145
I already ditched the program in favor of the binary version, but the screenshot is similar to the one above.

Comment 3 Heitor Omar Passos 2008-05-14 21:13:44 UTC
I confirm this bug here. It seems to be adm64 related (http://bugs.archlinux.org/task/10035) but not theme related. Tried Clearlooks and Default, same thing. Also, I found that it works ok inside gnome, the problem just shows when outside (using fluxbox here, but have read about others -- not sure about kde). Those people at Arch proposed a solution, but it didn't work here.
Comment 4 Bastian Mathes 2008-05-19 11:46:30 UTC
Just two additions: with my openoffice-2.4.0 the menu appears in the lower right corner instead of the upper right corner (everything else seems to fit), but it is not just menus, but also dropdown boxes that appear misplaced. I have tested this with dwm and twm window manager.
Comment 5 Bastian Mathes 2008-05-19 21:08:37 UTC
Sorry, one other interesting remark: when I do not use any window manager at all, everything looks fine (so does it using GNOME's metacity). Given that, it is probably not an inside/outside GNOME issue, but something dwm, twm, xmonad and fluxbox do that "confuses" openoffice-gtk. The strange thing is that there are no other gtk programs that show this behaviour.
Comment 6 Heitor Omar Passos 2008-05-27 17:40:23 UTC
Created attachment 154499 [details]
Emerge theme.cfg (default fluxbox theme), in which openoffice-gtk menus are misplaced
Comment 7 Heitor Omar Passos 2008-05-27 17:42:25 UTC
Created attachment 154501 [details]
Affinity theme.cfg (fluxbox theme), in which openoffice-gtk menus are correctly placed
Comment 8 Heitor Omar Passos 2008-05-27 17:47:30 UTC
I now believe you're right, Bastian. I changed my style on fluxbox and the
menus went to the right place, all of a sudden. I just couldn't believe it,
because almost every style I used didn't show this behaviour, and it was for
nothing but chance that this one worked. I'll past it (it's been pasted, look upwards) for you to take a look
(if you know how styles work in *box). I'll take a look at it later to see if I
can figure out something.
So, for now, I guess we don't know if this is really an openoffice bug, a gtk
bug or a wm bug, but it seems to me that it would be easier to solve it from
the wm approach. 
Nevertheless we've got a quickfix, and I would consider changing the severity
of this bug  (as it seems that the devs are overloaded).
Comment 9 Bastian Mathes 2008-05-27 21:30:07 UTC
Great, thanks Heitor. I took the two themes and dropped everything that "cannot be relevant" (menu, toolbar, split, pixmaps and color), there is not much left and I had some luck with that. 

One thing that I recognized was that the working theme does not set a border while the not working theme does. So I took the latest dwm (from the mercurial repository) and build it once with border (borderpx=1) and once without border (borderpx=0) and... the version with a window border of 1 pixel misplaced the menus and the version with a window border of 0 pixel places the menus correctly. Strange, but a workaround.  However, I still did not ran across any other gtk application that shows this behavior. 

Can someone confirm that setting the border to zero pixel solved this problem ?
Comment 10 Heitor Omar Passos 2008-05-28 21:17:31 UTC
OK, I tried /a lot/ of themes and it seems exactly it: the window.borderWidth parameter set to anything but 0 triggers the bug. Good work.
Now you say no other gtk application does it. If you look close at it, you'll see that every gtk app throws some space between the window border and the menu. The only ones that don't do it, afaik, are firefox and openoffice, which are known to deal a little oddly (imho) with gtk.
Now firefox is dealing ok with window borders, but openoffice isn't.
I guess we could state that this is an openoffice bug allright, but which is triggered by this interaction between gtk and window manager's window borders.
I don't know if we should bug openoffice: Debian guys are not messing with it (as per bug 389145, linked above), and Arch people seem to have found one package without the bug (as per bug 10035, linked above). But I still believe this is not a packaging issue, even thought this is a wild guess, for I don't know nothing about packaging.
Since we already have a very good workaround, I think we should just wait and see what devs and more lectured people recommend.
Also, I would take a look at this other bug, for it seems Arch's solution to this one triggers it, and they might be, in some mystic way, related: http://bugs.gentoo.org/show_bug.cgi?id=222129
Comment 11 Andreas Proschofsky (RETIRED) gentoo-dev 2008-05-29 22:48:23 UTC
Some great analysis in this bug, still this has to be solved upstream. So could someone summarize the problem and file it upstream?

http://qa.openoffice.org/issue_handling/pre_submission.html

OR: If it DOES NOT happen with openoffice-bin then it is a problem with one of the ooo-build-patches, in this case file here:

https://bugzilla.novell.com/index.cgi
Comment 12 Mario Bachmann 2008-06-05 21:04:13 UTC
same problem here on amd64: the pulldown/dropdown menus of openoffice do appear somewhere outside the display. (i only use one display.)

app-office/openoffice-2.4.0  USE="binfilter cups dbus firefox gtk java opengl pam" LINGUAS="de"

emerge --info
Portage 2.1.5.4 (default/linux/amd64/2008.0, gcc-4.2.4, glibc-2.7-r2, 2.6.24.7 x86_64)
=================================================================
System uname: 2.6.24.7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Thu, 05 Jun 2008 05:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r6, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -m3dnow -mmmx -msse -msse2 -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -m3dnow -mmmx -msse -msse2 -msse3"
DISTDIR="/mnt/data/gentoo/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="rsync://duron/distfiles rsync://amd2000/distfiles ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://mirror.icis.pcz.pl/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.bih.net.ba/gentoo/ ftp://gentoo.po.opole.pl ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://de-mirror.org/distro/gentoo/ ftp://mirror.muntinternet.net/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.ovh.net/gentoo-distfiles/ http://darkstar.ist.utl.pt/gentoo/ http://gentoo.inf.elte.hu/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.mirror.pw.edu.pl/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.ynet.sk/pub http://de-mirror.org/distro/gentoo/ http://gentoo.po.opole.pl http://mirror.ing.unibo.it/gentoo/ http://mirror.muntinternet.net/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.bih.net.ba/gentoo/ http://mirrors.ludost.net/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://gentoo.zie.pg.gda.pl http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.utf8"
LDFLAGS=""
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage_overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi aiglx alsa amd64 berkdb bzip2 cli cracklib crypt cups dbus dri dvb dvd dvdr dvdread encode exif fam firefox fortran gdbm glitz gpm hal iconv ipv6 isdnlog jpeg lm_sensors midi mmx mmxext mudflap multilib ncurses nls nptl nptlonly ogg openal opengl openmp pam pcre perl png pppd python qt3support qt4 readline reflection sdl session spell spl sse sse2 sse3 ssl tcpd tiff truetype unicode usb v4l v4l2 vorbis x264 xcomposite xinerama xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_file authz_groupfile authz_host authz_user autoindex deflate dir filter ident log_config logio mime status" DVB_CARDS="dibusb-usb1" ELIBC="glibc" INPUT_DEVICES="joystick keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 13 Mario Bachmann 2008-06-05 21:17:34 UTC
Created attachment 155649 [details]
the position of the dropdown menu ist wrong
Comment 14 Mario Bachmann 2008-06-05 21:18:56 UTC
Comment on attachment 155649 [details]
the position of the dropdown menu ist wrong

i clicked on "Tabelle". the menu appears at the bottom right of the screen. it even doesn't fit on the screen...
Comment 15 Mario Bachmann 2008-06-06 17:42:20 UTC
i emerged app-office/openoffice-2.4.0 with "-gtk"-use-flag. now the dropdown-menus looks ok.

app-office/openoffice-2.4.0  USE="binfilter cups dbus firefox opengl pam" LINGUAS="de"
Comment 16 awtand 2008-08-01 14:56:02 UTC
(In reply to comment #15)
> i emerged app-office/openoffice-2.4.0 with "-gtk"-use-flag. now the
> dropdown-menus looks ok.
> 
> app-office/openoffice-2.4.0  USE="binfilter cups dbus firefox opengl pam"
> LINGUAS="de"
> 
However, it defeats the purpose of running OO in GTK mode, which is the point of my original post. Right now, one of the solution to have a decent looking OO is to execute the program using "OOO_FORCE_DESKTOP=kde" if you have a few KDE libraries installed. In my case, I already emerged Amarok, so it is sufficient in order to run OO under KDE mode.
Comment 17 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-16 20:26:36 UTC
Could you please take a look if you still see this with OOo 3.0?
Comment 18 Heitor Omar Passos 2008-10-17 03:10:43 UTC
Here, on 3.0.0, exporting OOO_FORCE_DESKTOP=gnome on fluxbox and with a one-pixel-window-border theme, it looks normal again. I remark that the same configuration didn't work with as late as 2.4.1 (the newer I've tried).
It's openoffice-bin this time, thought. Could someone test with the source version so we can be sure this is not a patch problem? I just can't remember whether or not I had this issue with binary version before.
Comment 19 awtand 2008-10-20 08:05:30 UTC
Alright, OpenOffice 3.0 (the source version) had solved the issue. The menu would appear in the correct location while OOO_FORCE_DESKTOP=gnome is being used to execute the application.
Comment 20 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-20 08:35:44 UTC
Perfect. Thanks for reporting back, closing