mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-24 08:30:27 +00:00
Small fixes [stage]
This commit is contained in:
parent
4b74f582bb
commit
da93936067
3 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
2
version
2
version
|
@ -1 +1 @@
|
|||
13.0-1
|
||||
13.0-2
|
||||
|
|
Loading…
Reference in a new issue