File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
web-client/iron-remote-desktop/src Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 523
523
524
524
function fullResize() {
525
525
const windowSize = getWindowSize ();
526
- const wrapperBoundingBox = wrapper .getBoundingClientRect ();
527
526
528
- const containerWidth = windowSize .x - wrapperBoundingBox . x ;
529
- const containerHeight = windowSize .y - wrapperBoundingBox . y ;
527
+ const containerWidth = windowSize .x ;
528
+ const containerHeight = windowSize .y ;
530
529
531
530
let width = canvas .width ;
532
531
let height = canvas .height ;
533
532
534
- const ratio = Math .max (containerWidth / canvas .width , containerHeight / canvas .height );
533
+ const ratio = Math .min (containerWidth / canvas .width , containerHeight / canvas .height );
535
534
width = width * ratio ;
536
535
height = height * ratio ;
537
536
You can’t perform that action at this time.
0 commit comments