Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I found a bug: position: fixed;, floating widgets and fixed background images do not work #1517

Open
GetLikha opened this issue Jul 16, 2023 · 8 comments
Labels

Comments

@GetLikha
Copy link

I was creating my website when I hit a wall. Fixed Background Images don't work on this particular project, even though on my other projects it has. I tried a different project, and it works. I know you're looking into Silex V3, but still commenting on V2 so I can contribute to V3.

I don't know exactly how to reproduce the problem, but I'd happily provide project files you can look into.

Website is: https://getlikha.com
I'm well aware widgets are fixed and fixed background images work, depending on the resolution. I've used different browser resizing tools to comfirm this.

If you use Silex desktop app, please complete the following information

  • Silex desktop version: 2.7.30
  • OS: Windows 11 (ReviOS Modified)
  • Opera One, Brave
@GetLikha GetLikha added the bug label Jul 16, 2023
@lexoyo
Copy link
Member

lexoyo commented Jul 16, 2023

Hello
So you're saying that background-image can not be fixed? The bug is only on mobile? Or only when the site is resized? (Smaller width than the section)
I'll look into that soon

@GetLikha
Copy link
Author

Hey so, I noticed if you add <style></style> in the script.js/the JavaScript editor, the fixed background-image works properly, but the browser responsiveness doesn't work.
image

The one with the <style> in the js: https://51d29bee.likhastudios.pages.dev
The one without the <style> in the js: https://668af317.likhastudios.pages.dev

I can't wrap my head around it but there seems to be a CSS dependency on script.js or something, can't wrap my mind around it.

Hopefully it helps with V3!

@lexoyo
Copy link
Member

lexoyo commented Jul 18, 2023

Oh yes, this style tag should not be there !! :-/

On my side I see a <script> tag in https://51d29bee.likhastudios.pages.dev/js/script.js

Please paste here what you put in the JS editor

@lexoyo
Copy link
Member

lexoyo commented Jul 18, 2023

(sorry about the delay of my answer)

@GetLikha
Copy link
Author

All I added was this:
image
Also I noticed script.js has missing semi-colons:
image
and:
image

Oh yes, this style tag should not be there !! :-/

On my side I see a <script> tag in https://51d29bee.likhastudios.pages.dev/js/script.js

Please paste here what you put in the JS editor

@GetLikha
Copy link
Author

On another laptop, fixed backgrounds and widgets are working, so I'm assuming it's relative to the scale and the resolution of the device. If I set my windows screen scale to 100% and resolution to 1920x1080, fixed background and widgets work fine. But if I change the scale to 125%, it doesn't budge anymore. Trying to wrap my head around it but, the problem has something to do with the screen size and scale.

@lexoyo
Copy link
Member

lexoyo commented Jul 18, 2023 via email

@lexoyo
Copy link
Member

lexoyo commented Jul 18, 2023

I just understood that it works WITH the html tags in the js editor

I will look into this

@lexoyo lexoyo added the v2 label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants