Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#10207 closed defect (fixed)

with multi-monitor setup arrows aren't displayed in drop-down menu

Reported by: goo@… Owned by: team
Priority: normal Milestone: 14.07
Component: Core Version: tested
Keywords: menu multi-monitor Cc:

Description (last modified by Don-vip)

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-05-26 07:29:16
Last Changed Author: akks
Revision: 7182
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-05-26 09:22:25 +0200 (Mon, 26 May 2014)
Last Changed Rev: 7182

Identification: JOSM/1.5 (7182 it) Linux Ubuntu 14.04 LTS
Memory Usage: 228 MB / 2672 MB (173 MB allocated, but free)
Java version: 1.7.0_55, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u55-2.4.7-1ubuntu1
VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]

When using a multi-monitor setup arrow keys aren't displayed in drop-down menu, thus not allowing the user to select items outside the visible part of a drop-down menu.

Reproduceable: always

Attachments (2)

josm-menus.png (1015.2 KB ) - added by goo@… 10 years ago.
josm-menus_SingleMonitor.png (222.9 KB ) - added by goo@… 10 years ago.

Download all attachments as: .zip

Change History (25)

comment:1 by Don-vip, 10 years ago

Description: modified (diff)
Owner: changed from team to goo@…
Status: newneedinfo

Can you please attach a screenshot and tell us about your screen resolutions?

by goo@…, 10 years ago

Attachment: josm-menus.png added

by goo@…, 10 years ago

comment:2 by goo@…, 10 years ago

In the first image, with a stacked multi-monitor configuration (but actually I have reproduced this with _any_ multi-monitor configuration with resolutions from 1920x2280 as shown here to 2970x2280), the drop-down menu lacks an entry to let the user select the hidden menu entries.
In the second image, with a single-monitor setup the drop-down menu has the arrow keys to let the user to scroll up/down, as expected.

Only starting josm with a single-monitor and switching to a multi-monitor configuration afterwards, let josm retain the arrow-keys in the drop-down menus.

I have reproduced this with Ubuntu 13.10 and 14.04.
As a side note, multi monitor setups are driven by standard RANDR protocol, as I am running plain Xorg with open drivers.

comment:3 by Don-vip, 10 years ago

Owner: changed from goo@… to team
Status: needinfonew

comment:4 by stoecker, 10 years ago

NOTE: I changed the username to no be an e-mail address anymore, as there are constant delivery failures for that address.

comment:5 by Don-vip, 10 years ago

Keywords: linux KDE added

looks like specific to KDE, I cannot reproduce on Windows.

comment:6 by stoecker, 10 years ago

Resolution: irreproducible
Status: newclosed

Reproducable here with a 1920x1200, but only with stacked setup, not side-by-side. It seems for the buttons the full screen height is used instead of the height of one single screen.

comment:7 by stoecker, 10 years ago

Resolution: irreproducible
Status: closedreopened

comment:8 by stoecker, 10 years ago

Sorry, closing was an error :-)

in reply to:  6 comment:9 by goo@…, 10 years ago

Replying to stoecker:

Reproducable here with a 1920x1200, but only with stacked setup, not side-by-side. It seems for the buttons the full screen height is used instead of the height of one single screen.

I found this reproduceable also with two side-by-side monitors with the right one [1050x1680] rotated by 90degrees and thus with a longer height then the left monitor [1920x1080]. On the left monitor josm application window exposes menus longer then the available screen height. After moving the application window to the right screen the menu is fully visibile thanks to the higher screen height.

Generally speaking it seems that josm adapts the menus height to the longer screen height available in the multi-monitor setup, forcing the user to use josm on the screen with the higher screen height or, in the case of a stacked setup, on the top most screen only to have fully visible menus.
To me this is suboptimal as I'm used to work on the main monitor at the bottom of the stacked setup. At least, menu height should be limited to the lower display height of the multi-monitor configuration, to let the user work with josm on whichever screen he prefers.

I've also reproduced this behavior with other window-managers (openbox, fvwm), so it doesn't seem to be KDE related.

comment:10 by Don-vip, 10 years ago

Keywords: linux KDE removed

comment:11 by stoecker, 10 years ago

What about that: Use the buttons and change menu size according to window with and not screen width? Vincent, do you know where the relevant code is?

comment:12 by Don-vip, 10 years ago

Somewhere in source:trunk/src/org/openstreetmap/josm/gui/MenuScroller.java I suppose. Screen height should be ok we just need to be sure to use current screen information :)

comment:13 by skyper, 10 years ago

Well, #8881 looks similar with only on screen but a top panel (Gnome3).

comment:14 by Don-vip, 10 years ago

Milestone: 14.07

comment:15 by Don-vip, 10 years ago

Resolution: fixed
Status: reopenedclosed

In 7291/josm:

fix #10207 - fix menu scroller for multi monitors systems

comment:16 by stoecker, 10 years ago

One note - I think the Geometry stuff should be in WindowGeometry class, as this already contains some workarounds for specific setups.

comment:17 by Don-vip, 10 years ago

I agree with you but in this specific case, I didn't see how to make it fit in this class as it is unrelevant to Window(s)...

comment:18 by stoecker, 10 years ago

There is already an "private static Rectangle getScreenInfo(Rectangle g)". Adding another static function getting the screen information or reusing an existing one instead of directly accessing the GraphicsConfiguration should be enough. Reason is to have all that at one place, so that necessary workarounds will catch all cases.

comment:19 by Don-vip, 10 years ago

Resolution: fixed
Status: closedreopened

I got some regressions on laptops with lower resolutions than my main machine.

comment:20 by Don-vip, 10 years ago

Resolution: fixed
Status: reopenedclosed

In 7346/josm:

fix #10207 - UI tuning in menu scroller: ignore JSeparator in scroll count

comment:21 by goo@…, 10 years ago

Today I found out that submenus of menus longer than the actual screen height are hidden.
I get this on the "imagery" menu where I can't get to the items belonging to a submenu of imagery.

Reproduceable: always, either with a single monitor or a multi-monitor setup

josm-latest 7451

comment:22 by anonymous, 10 years ago

Forgot to say that submenus of menus not exceeding the screen height are normally viewable.

comment:23 by Don-vip, 10 years ago

I know see #10392 / #10397.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.