Hi
Is there any possibility to resize a HTML component to the browser's size via coding?
If not possible to resize to the browser's size, at least the possibility to resize the HTML component to a defined width and length.
Thanks in advance
Mickael
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
Coming back to this because I have the exact same problem. Is it fixed now? Can we change the width and height of an element with velo?
I have an iFrame that contains a chatbot but the size of the open chat covers certain buttons and they become unclickable. If I could increase the size of this iFrame when I click the little chat icon that would solve my problem. If anyone has ideas I would appreciate, thank you
I want to set the size of a line relative to a value in the DB. I had expected to set the maximal size in the editor and then grammatically downsize it in a percentage relative to that number.
E.g.
lineMaxSize = 200px
value = 9 (max 10)
I'd expect to be able to do something like:
$item('#line').size.width = Math.floor($item('#line').size.width * itemData.size/10);
Reading this entry, I suppose this is not possible, or is it?
The other option will be to change the style and split it in N elements showing those < value.
Any other Ideas?
Responsive is now a must. What are the motivations to restrict this feature?
Hello,
Any news regarding this features? It would be realyl useful and I do not understand why it is blocked for html components...
Thanks
Hey Mickael,
I've never tried an HtmlComponent in a LightBox, but then again, I've never tried fruit-flavored beers.
Let me know how it goes. I'm interested to hear if you succeed, and I also wouldn't mind learning something interesting as well.
Have fun,
Yisrael
Hi Yisrael
I just read an article on the light box component. It seems I can achieve what I want with this component. I will try
Cheers
Mickael
Hi Mickael,
Sorry, can't think of anything convenient. Maybe just "push" it out of the way while you're working and then put it back when you're done? Perhaps someone else has and idea or two?
Yisrael
Hi Yisrael
Thanks for your answer.
My real problem is that I adjusted the size of the HTML component with the mouse to make it bigger to a size that is OK and I use the expand and collapse function to show or hide it programmatically .
Problem is when i work on the editor in graphical mode, this HTML component is now displayed all over the editor and the other components and this is not convenient. Any idea how to solve this ?
Cheers,
Mickael
Hi Mickael,
You can't change the size of the HtmlComponent programmatically. You can however adjust the size: click on the HtmlComponent and drag the resize handles to whatever width and height you want.
You could get "fancy" by using different HtmlComponents on the page, and then using wix-window.formFactor or wix-window.WindowSizeInfo select the appropriate HtmlComponent that fits the current form factor (mobile or desktop) or size. To be honest, I think this approach is really way too much of a headache to consider, but my brain just came up with it so I thought I'd humor my brain.
Have fun,
Yisrael