File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed
src/LiveDevelopment/BrowserScripts Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -474,25 +474,6 @@ function RemoteFunctions(config) {
474474 : elemBounds . top - 30 ) + scrollTop ;
475475 }
476476
477- const windowWidth = window . innerWidth ;
478- const windowHeight = window . innerHeight ;
479- // right edge
480- if ( leftPos + boxWidth > windowWidth ) {
481- leftPos = Math . max ( 10 , windowWidth - boxWidth - 10 ) ;
482- }
483- // left edge
484- if ( leftPos < 0 ) {
485- leftPos = 10 ;
486- }
487- // bottom edge
488- if ( topPos + boxHeight > windowHeight ) {
489- topPos = Math . max ( 10 , windowHeight - boxHeight - 10 ) ;
490- }
491- // top edge
492- if ( topPos < 0 ) {
493- topPos = 10 ;
494- }
495-
496477 // the icons that is displayed in the box
497478 const ICONS = {
498479 arrowUp : `
@@ -711,25 +692,6 @@ function RemoteFunctions(config) {
711692 }
712693 }
713694
714- const windowWidth = window . innerWidth ;
715- const windowHeight = window . innerHeight ;
716- // right edge
717- if ( leftPos + boxWidth > windowWidth ) {
718- leftPos = Math . max ( 10 , windowWidth - boxWidth - 10 ) ;
719- }
720- // left edge
721- if ( leftPos < 0 ) {
722- leftPos = 10 ;
723- }
724- // bottom edge
725- if ( topPos + boxHeight > windowHeight ) {
726- topPos = Math . max ( 10 , windowHeight - boxHeight - 10 ) ;
727- }
728- // top edge
729- if ( topPos < 0 ) {
730- topPos = 10 ;
731- }
732-
733695 const styles = `
734696 .box {
735697 background-color: #4285F4;
You can’t perform that action at this time.
0 commit comments