-
-
Notifications
You must be signed in to change notification settings - Fork 44
Fix custom pageSize for Dash App Previews #243
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
Conversation
1c9b6d6 to
b002aa3
Compare
b002aa3 to
9a0cafc
Compare
|
I think only integers are supported - there's an electron bug with floats: electron/electron#9361 (comment) |
|
In my investigations, I noticed that the
We can |
|
@antoinerg or @etpinard Please review.. I have checked this in an on-prem environment and custom page sizes work for me. |
|
@tarzzz Don't we want this for |
|
Looks good to me 💃 That said, are folks ok with providing the page size in microns? Maybe we could change it to pixels, call this a breaking change and bump |
It is not a breaking change as the |
This is to prevent: electron/electron#9361 (comment) incase someone provides float values for width/height.
a685f6e to
58e5930
Compare
|
Correct @tarzzz your PR here does not introduce a breaking change. But what if we'd like to improve the API (here OR in a future PR), I think making users input page dimensions in pixels would be beneficial. |
Yes, but this is going to be the part of a maintenance release.. so we should not be introducing breaking change(s) or new features. If required, We can add the new issue (for dimensions in pixels) as the part of the next release work. |
|
@tarzzz thanks again for taking on this issue. Could you also make a PR to merge those changes into |
Part of https://github.com/plotly/streambed/issues/13458
The custom size is not working because
remote.CreateBrowserWindowexpects the height/width to be "non-strings" (ie integers or floats). This fixes the issue.