@@ -403,7 +403,7 @@ L.Control.JSDialog = L.Control.extend({
403
403
initialFocusElement [ 0 ] . focus ( ) ;
404
404
405
405
// pass the current instance and get the tabcontrol object if it exist
406
- // this will only search in current instance and not in whole docuemnt
406
+ // this will only search in current instance and not in whole document
407
407
const tabControlWidget = this . findTabControl ( instance ) ;
408
408
409
409
let focusWidget , firstFocusableElement ;
@@ -448,7 +448,7 @@ L.Control.JSDialog = L.Control.extend({
448
448
return null ; // Return null if tabcontrol is not found
449
449
} ,
450
450
451
- /// if you use updatePos - instance param is binded automatically
451
+ /// if you use updatePos - instance param is bound automatically
452
452
setPosition : function ( instance , updatedPos ) {
453
453
var calculated = false ;
454
454
var isRTL = document . documentElement . dir === 'rtl' ;
@@ -608,7 +608,7 @@ L.Control.JSDialog = L.Control.extend({
608
608
} ,
609
609
610
610
isChildAutoFilter : function ( instance ) {
611
- // JSON structure suggest that if children array's first element has id='menu' and widgetType = 'treelistbox' then it will definatly a child autofilter popup
611
+ // JSON structure suggests that if children array's first element has id='menu' and widgetType = 'treelistbox' then it will definitely be a child autofilter popup
612
612
var rootChild = instance . children [ 0 ] ;
613
613
if ( rootChild ) {
614
614
var firstWidget = rootChild . children [ 0 ] ;
@@ -622,7 +622,7 @@ L.Control.JSDialog = L.Control.extend({
622
622
instance . posx = parentAutofilter . right ;
623
623
instance . posy = parentAutofilter . top ;
624
624
625
- // set marding start for child popup in rtl mode
625
+ // set margin start for child popup in rtl mode
626
626
var isSpreadsheetRTL = this . map . _docLayer . isCalcRTL ( ) ;
627
627
if ( isSpreadsheetRTL ) {
628
628
var rtlPosx = parentAutofilter . left - instance . form . getBoundingClientRect ( ) . width ;
@@ -658,7 +658,7 @@ L.Control.JSDialog = L.Control.extend({
658
658
} ,
659
659
660
660
getAutoPopupParentContainer ( instance ) {
661
- // Parent container will
661
+ // Parent container will
662
662
if ( instance . isAutofilter || instance . isAutoCompletePopup || ! instance . isDocumentAreaPopup )
663
663
return document . body
664
664
return document . getElementById ( 'document-container' ) ;
@@ -752,7 +752,7 @@ L.Control.JSDialog = L.Control.extend({
752
752
this . createDialog ( instance ) ;
753
753
this . addHandlers ( instance ) ;
754
754
755
- // FIXME: remove this auto-binded instance so it will be clear what is passed
755
+ // FIXME: remove this auto-bound instance so it will be clear what is passed
756
756
instance . updatePos = this . setPosition . bind ( this , instance ) ;
757
757
758
758
// Special case for nonModal dialogues. Core side doesn't send their initial coordinates. We need to center them.
@@ -762,7 +762,7 @@ L.Control.JSDialog = L.Control.extend({
762
762
instance . updatePos ( ) ;
763
763
}
764
764
765
- // AutoPopup will calculate poup position for Autofilter Popup
765
+ // AutoPopup will calculate popup position for Autofilter Popup
766
766
if ( instance . isAutofilter && ! instance . isAutoFillPreviewTooltip )
767
767
this . calculateAutoFilterPosition ( instance ) ;
768
768
else if ( instance . isAutoFillPreviewTooltip || instance . isAutoCompletePopup ) {
@@ -885,7 +885,7 @@ L.Control.JSDialog = L.Control.extend({
885
885
newX = window . innerWidth - width ;
886
886
887
887
// at this point we have un updated potion of autofilter instance.
888
- // so to handle overlapping case of autofiler and toolbar we need some complex calculation
888
+ // so to handle overlapping case of autofilter and toolbar we need some complex calculation
889
889
if ( dialogBottom > windowBottom )
890
890
newY = newY - ( dialogBottom - windowBottom + 10 ) ;
891
891
0 commit comments