Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › General Discussions › Window › Set Width and Height window Tagged: window size This topic has 1 reply, 2 voices, and was last updated 3 years, 6 months ago by admin. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts April 10, 2022 at 1:14 am #103062 Joko PitoyoParticipant <div> <div>i want set widht and height from code, not from css, but this not work</div> <div> const wnd = document.createElement(‘smart-window’);</div> <div></div> <div> wnd.opened = true;</div> <div></div> <div> wnd.style.width = 400; wnd.style.height = 250; //doesnot work</div> <div> <div> wnd.width = 400; wnd.height = 250; //also doesnot work</div> <div></div> </div> </div> April 11, 2022 at 6:44 am #103067 adminKeymaster Hi, The provided code is invalid. To apply CSS you should use wnd.style.width = ‘400px’; Best regards, Peter Stoev Smart UI Team https://www.htmlelements.com/ Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In With Google Log In