mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8178025: HiDPI with non-integer scale factor - SPANs in HTML are rendered overlapping each other
Reviewed-by: serb, ssadetsky
This commit is contained in:
parent
26a4a1a6b3
commit
e6a8aea72b
9 changed files with 270 additions and 10 deletions
|
@ -1135,9 +1135,18 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
|||
if (graphicsConfig == gc) {
|
||||
return false;
|
||||
}
|
||||
|
||||
GraphicsConfiguration oldConfig = graphicsConfig;
|
||||
graphicsConfig = gc;
|
||||
|
||||
/*
|
||||
* If component is moved from one screen to another sceeen
|
||||
* graphicsConfiguration property is fired to enable the component
|
||||
* to recalculate any rendering data, if needed
|
||||
*/
|
||||
if (oldConfig != null && gc != null) {
|
||||
firePropertyChange("graphicsConfiguration", oldConfig, gc);
|
||||
}
|
||||
|
||||
ComponentPeer peer = this.peer;
|
||||
if (peer != null) {
|
||||
return peer.updateGraphicsData(gc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue