Small fixes [stage]

This commit is contained in:
crschnick 2024-10-03 17:24:21 +00:00
parent 4b74f582bb
commit da93936067
3 changed files with 5 additions and 2 deletions

View file

@ -63,6 +63,8 @@ public class TerminalViewDockComp extends SimpleComp {
private void update(Region region) {
var bounds = region.localToScreen(region.getBoundsInLocal());
TerminalView.get().resizeView((int) bounds.getMinX(), (int) bounds.getMinY(),(int) bounds.getWidth(), (int) bounds.getHeight());
var sx = region.getScene().getWindow().getOutputScaleX();
var sy = region.getScene().getWindow().getOutputScaleY();
TerminalView.get().resizeView((int) Math.ceil(bounds.getMinX() * sx), (int) Math.ceil(bounds.getMinY() * sy),(int) Math.floor(bounds.getWidth() * sx), (int) Math.floor(bounds.getHeight() * sy));
}
}

View file

@ -318,6 +318,7 @@ public class TerminalView {
terminalInstances.forEach(terminalInstance -> {
terminalInstance.show();
terminalInstance.front();
terminalInstance.updatePosition(viewBounds);
});
}

View file

@ -1 +1 @@
13.0-1
13.0-2