commit | f7b2be8660227ef87702faf6914235dac2547a09 | [log] [tgz] |
---|---|---|
author | Claudio Guglielmo <claudio.guglielmo@bsi-software.com> | Fri Jul 02 16:58:36 2021 +0200 |
committer | Claudio Guglielmo <claudio.guglielmo@bsiag.com> | Thu Jul 08 05:12:54 2021 -0400 |
tree | 2c2791090cbc07f2f359e33bf10cb4785557ebc2 | |
parent | f6509b0ba3cb1eb8db231e02410aa5599638c0a4 [diff] |
Popups are sometimes outside of the window on certain zoom levels This fixes two (known) cases: 1. Window is zoomed in a lot, popup is on the left side of an anchor, popup is too large to fit in completely, there is no space on the right side of the anchor. Popup is switched to the right because _prefLocationWithAnchor uses a fractional anchorBounds.x but a rounded popupWidth resulting in -0.999 (anchorBounds.x - popupWidth). 296537 2. Window is zoomed out a lot, popup is aligned topedge and right, anchor is at top: 10px with a margin-top: 10px. Browser returns 9.984px for the y position of the anchor (due to zoom) but margin stays at 10px -> pref location.y would be -0.16px resulting in a wrong popup switch. Fixed by adding some tolerance when calculating whether switch is necessary. 263404 The code in PopupLayout should now be obsolete. Also, the popup layout itself uses exact measurement for its size for quite a while, so it should be more consistent now. Change-Id: I3b0c92c05145f0d47be83e71a481e7a5196c200d Reviewed-on: https://git.eclipse.org/r/c/scout/org.eclipse.scout.rt/+/182706 Tested-by: Scout Bot <scout-bot@eclipse.org> Reviewed-by: Claudio Guglielmo <claudio.guglielmo@bsiag.com>
Eclipse Scout is a mature and open framework for modern business applications. It substantially boosts developer productivity and is simple to learn.
This Repository Eclipse Scout RT contains the source for the runtime components of the Eclipse Scout Framework.
The content of this repository is built on the Eclipse infrastructure and published to various repositories (e.g. Maven Central for the Java code and npmjs for the JavaScript code).
The easiest way to start with Eclipse Scout is to visit the homepage.
We welcome any kind of contributions (Bug report, documentation, code contribution...). Please read the Eclipse Scout Contribution page to learn more about it.
To get in touch with the Eclipse Scout community, please open a thread in the Eclipse Scout Forum.