I have a list and I want it to be full height
In the konsol directly this code works
var panel = document.getElementById('TForm1_Panel1'); console.log('Panel hittad: ' + (panel ? 'ja' : 'nej')); console.log('Panel storlek: ' + panel.style.width + ' x ' + panel.style.height); panel.style.setProperty('width', '100vw', 'important'); panel.style.setProperty('height', '100vh', 'important'); panel.style.setProperty('position', 'fixed', 'important'); panel.style.setProperty('top', '0', 'important'); panel.style.setProperty('left', '0', 'important'); var list = document.getElementById('TForm1_ListBox2'); console.log('List hittad: ' + (list ? 'ja' : 'nej')); list.style.setProperty('width', '100%', 'important'); list.style.setProperty('height', '100%', 'important'); console.log('Klart!');
but in my code it is not working
and the consol is blank
no of the consol.log is showing
procedure TForm1.WebFormCreate(Sender: TObject); begin asm pas.DansElev.Form1.FUserId = sessionStorage.getItem('userId') || ''; pas.DansElev.Form1.FUserCode = sessionStorage.getItem('userCode') || ''; pas.DansElev.Form1.FCodeId = sessionStorage.getItem('codeId') || ''; end; if FCodeId = '' then begin asm window.location.href = 'https://dans.mic.tf'; end; Exit; end; pnlInnehall.Visible := False; pnlLista.Visible := True; asm var panel = document.getElementById('TForm1_Panel1'); console.log('Panel hittad: ' + (panel ? 'ja' : 'nej')); panel.style.setProperty('width', '100vw', 'important'); panel.style.setProperty('height', '100vh', 'important'); panel.style.setProperty('position', 'fixed', 'important'); panel.style.setProperty('top', '0', 'important'); panel.style.setProperty('left', '0', 'important'); var list = document.getElementById('TForm1_ListBox2'); console.log('List hittad: ' + (list ? 'ja' : 'nej')); list.style.setProperty('width', '100%', 'important'); list.style.setProperty('height', '100%', 'important'); console.log('Klart!'); end; LoadInnehall; end;
Before updating all my consol.log where showing
is there a way to install earlier versins of TMS Web CORE