mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-18 07:16:31 +00:00
Small fixes [stage]
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -318,6 +318,7 @@ public class TerminalView {
|
||||
|
||||
terminalInstances.forEach(terminalInstance -> {
|
||||
terminalInstance.show();
|
||||
terminalInstance.front();
|
||||
terminalInstance.updatePosition(viewBounds);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user