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

Making background image fit extents of dashboard #2

Open
markjsmith opened this issue Feb 15, 2019 · 8 comments
Open

Making background image fit extents of dashboard #2

markjsmith opened this issue Feb 15, 2019 · 8 comments

Comments

@markjsmith
Copy link

Hi, loving this dashboard and the way you have set the sizes by no of pixels. I’m having an issue though, the background loads at full screen size and then the dashboard loads over the top, but is larger than the background so you rescale the page to see the full dash, easy enough, and then the background does not resize. I can’t seem to find any css to set the background to the extents of the webpage and not the screen size, and making my image larger doesn’t solve it. Any clues?

@AZSupra
Copy link
Owner

AZSupra commented Feb 21, 2019

Sorry I was out of town when you posted this.

What resolution are you trying to view it at? The background image in my repository is 1024x600 since that's the resolution of the Fire 7 tablet i'm using. I set background-size: cover in the css which tries to preserve the aspect ratio of the background so that may be the culprit.

I also set columns: 1024 in the Main.dash file. I would first try to change that to match the horizontal resolution of your display and see if it helps.

If your horizontal resolution is less than 1024 you would also need to change the width of the widgets in top_panel.yaml and bottom_panel.yaml so they don't exceed your resolution.

If your horizontal resolution is greater than 1024 and you want to use the same background I can send you a slightly larger version of the image that is 1408x805. You could then crop it to potentially fit a little better.

Even though defining the grid spaces as the number of pixels gives the most flexibility it also means that you pretty much have to redefine all the sizes if your display is different. Hope that helps! Let me know if you have any other questions.

@AZSupra
Copy link
Owner

AZSupra commented Feb 21, 2019

Just found a larger 1950x1300 version of the wallpaper here: http://rushiwork.oss-cn-beijing.aliyuncs.com/works/201102/1a5ecba4.jpg

@markjsmith
Copy link
Author

markjsmith commented Feb 21, 2019 via email

@AZSupra
Copy link
Owner

AZSupra commented Feb 21, 2019

Which iPad model do you have? Do you know what the dimensions of your background image are? I'm wondering if you're using an image that is smaller than the resolution of your iPad since they are like 2048x1600 or something huge like that.

@markjsmith
Copy link
Author

markjsmith commented Feb 22, 2019 via email

@markjsmith
Copy link
Author

markjsmith commented Feb 22, 2019 via email

@AZSupra
Copy link
Owner

AZSupra commented Feb 22, 2019

Hmm i don't see the images for some reason. Can you try to attach them again?

@markjsmith
Copy link
Author

Not forgotten you, need to log in from my laptop as I can’t find a way to do it by email or on my iPad.... please bear with me :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants