Skip to content

Commit

Permalink
fix typo: project, not porject (#28384)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycw committed May 14, 2024
1 parent 01aa489 commit c5a6289
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions editor/js/Menubar.File.js
Expand Up @@ -27,20 +27,20 @@ function MenubarFile( editor ) {

const { top, right } = this.dom.getBoundingClientRect();
const { paddingTop } = getComputedStyle( this.dom );
newPorjectSubmenu.setLeft( right + 'px' );
newPorjectSubmenu.setTop( top - parseFloat( paddingTop ) + 'px' );
newPorjectSubmenu.setDisplay( 'block' );
newProjectSubmenu.setLeft( right + 'px' );
newProjectSubmenu.setTop( top - parseFloat( paddingTop ) + 'px' );
newProjectSubmenu.setDisplay( 'block' );

} );
newProjectSubmenuTitle.onMouseOut( function () {

newPorjectSubmenu.setDisplay( 'none' );
newProjectSubmenu.setDisplay( 'none' );

} );
options.add( newProjectSubmenuTitle );

const newPorjectSubmenu = new UIPanel().setPosition( 'fixed' ).addClass( 'options' ).setDisplay( 'none' );
newProjectSubmenuTitle.add( newPorjectSubmenu );
const newProjectSubmenu = new UIPanel().setPosition( 'fixed' ).addClass( 'options' ).setDisplay( 'none' );
newProjectSubmenuTitle.add( newProjectSubmenu );

// New Project / Empty

Expand All @@ -54,11 +54,11 @@ function MenubarFile( editor ) {
}

} );
newPorjectSubmenu.add( option );
newProjectSubmenu.add( option );

//

newPorjectSubmenu.add( new UIHorizontalRule() );
newProjectSubmenu.add( new UIHorizontalRule() );

// New Project / ...

Expand Down Expand Up @@ -95,7 +95,7 @@ function MenubarFile( editor ) {
}

} );
newPorjectSubmenu.add( option );
newProjectSubmenu.add( option );

} )( i );

Expand Down

0 comments on commit c5a6289

Please sign in to comment.