HISPhilip Posted December 14, 2017 Share Posted December 14, 2017 Hi, I want to be able to have my canvas fit/stretch to my TUniHTMLFrame but can't seem to find a client-side solution. Right now my HTMLFrame's height and width are managed on the client-side but I don't know how to access the height/width of the client-side HTMLFrame. If I try: UniSession.AddJS('document.getElementById(''Canvas1'').width = ' + UniHTMLFrame1.Height.ToString + ';'); It will adjust the canvas to the VCL size/server-side, aka retain the same canvas size regardless of screen size. Also accessing LayoutConfig.Height and LayoutConfig.Weight do not give me the client-side values as desired. Thanks in advance, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 14, 2017 Share Posted December 14, 2017 Hi, Can you clarify your question ?! What is it - your canvas ? Best regards, Quote Link to comment Share on other sites More sharing options...
HISPhilip Posted December 14, 2017 Author Share Posted December 14, 2017 Hi, Sorry if it wasn't completely clear I meant HTML Canvas. Essentially I have been able to adjust my HTMLFrame on the client-side, but I want to adjust the HTML Canvas dimensions to be the same as the HTMLFrame client-side dimensions but am unsure how to access it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.