Hi.
I’m building a website, & know of Wix Code but not how to actually use it. Only copied & pasted code so far. Anyone who can provide the code for this problem would be doing me an absolute solid.
I need a code that effectively does this:
when browserWindowed=true then
(effect);
end
In other words, how do I detect if the browser is windowed rather than filling the screen.
If anyone can provide this for me, or tell me if it isn’t possible, that’d be great.
Thanks
I don’t believe this is achievable as of today in Wix. Why do you need it? Describing that might make us find some work around.
Yeah fair enough. That’d have been a better question really.
Visit here for reference:
https://websitestphils.wixsite.com/website-5
The horizontal menu at the top doesn’t shrink when I make the browser window smaller. So not all the menu items are shown when windowed. I thought it’d use that “more” tab, but I can’t get it to do so (maybe because its a pinned menu?)
Any help would be great! Thanks
Hi Nick!
You could try and use the WixWindow method getBoundingRect( ) to measure the no. of pixels that in the window’s height and width and adjust the components of your page accordingly.
Other than that as Andreas said I don’t believe that we currently have a way to affect the window’s specifics or to manipulate them (a feature request is always welcomed!).
Doron. 