-
Bug
-
Resolution: Fixed
-
P3
-
8
-
8.0-graphics-scrum-b1007-x64, Windows 7 x64
To illustrate that I've changed ColorPalette code so when you click on Custom Color link it opens four stages each is expected to be adjacent to Palette window. In fact, only top and left are adjucent while bottom and right are at a distance. See attached screenshot.
The problem is caused by PopupWindow.syncWithRootBounds() method which does some "black" magic behind the scenes:
// update popup dimensions
setWidth(layoutBounds.getMaxX() - layoutBounds.getMinX());
setHeight(layoutBounds.getMaxY() - layoutBounds.getMinY());
// update transform
rootNode.setTranslateX(-layoutBounds.getMinX());
rootNode.setTranslateY(-layoutBounds.getMinY());
if (alignWithContentOrigin) {
// update window position
setWindowTranslate(layoutBounds.getMinX(), layoutBounds.getMinY());
...
}
The root cause is that root node has shadow and the shadow contributes to width and height of the PopupWindow but doesn't affect its x and y.
- blocks
-
JDK-8123906 Long press on virtual keyboard key causes NPE
- Closed
- is blocked by
-
JDK-8116593 Layout bounds not dynamic for Region as a Scene root
- Closed
- relates to
-
JDK-8124340 Menu : sequential menu have distance.
- Resolved
-
JDK-8115852 PopupWindow with content with Shadow Effect, wrong position
- Closed
-
JDK-8125657 ColorPicker Custom Color dialog opens mostly off screen
- Closed
-
JDK-8120112 ComboBox doesn't render scroll bars
- Resolved
-
JDK-8115046 Context menu is shifted to the right from the expected position
- Resolved
-
JDK-8125934 RTL orientation, ColorPicker palette position issue.
- Closed