Advertisement
yskang

adsk-forge-LevelSectionPanel-step2

Apr 29th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. this.container.classList.add( 'adn-docking-panel' );
  2. this.container.classList.add( 'adn-lvl-section-panel' );
  3.  
  4. if (!options.heightAdjustment)
  5.     options.heightAdjustment = 70;
  6.  
  7. if (!options.marginTop)
  8.     options.marginTop = 0;
  9.  
  10. this.createScrollContainer( options );
  11. this.options = options;
  12. this.viewer = viewer;
  13. this.uiCreated = false;
  14.  
  15. this.addVisibilityListener(( show ) => {
  16.     if( !show ) return;
  17.  
  18.     if( !this.uiCreated )
  19.         this.createUI();
  20. });
  21.  
  22. this.onButtonClicked = this.onButtonClicked.bind( this );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement