JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Window › reposition initial window › Reply To: reposition initial window
December 11, 2020 at 11:41 pm
#101222
edwardsmarkf
Member
this works, sort of:
window.onload = () => { const smartWindow = document.querySelector('smart-window'); smartWindow.headerButtons = ['collapse', 'minimize', 'pin']; smartWindow.addEventListener('minimize', (event) => { setTimeout( () => { document.querySelector('smart-window').style.left = '300px' ; }, 100); }); };