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

[BUG] a bug specific to the combination of match_aspect=True and "stretch" sizing modes #10369

Open
user4015990 opened this issue Aug 4, 2020 · 0 comments

Comments

@user4015990
Copy link

user4015990 commented Aug 4, 2020

FOLLOW THESE INSTRUCTIONS CAREFULLY

ISSUES THAT DO NOT CONTAIN NECESSARY INFORMATION MAY BE CLOSED, IMMEDIATELY

The issue tracker is NOT the place for general support. For questions and technical assistance, come join the Bokeh Project Discourse.

For defects or deficiencies, please provide ALL OF THE FOLLOWING:

ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)

bokeh=2.1.1
python=3.8.3
OS=windows 10
brower=Firefox 79

Description of expected behavior and the observed behavior

Expect to keep the aspect ratio of image as is when the browser window is resized.
However, the aspect ratio of image will change when the browser window is resized.

Complete, minimal, self-contained example code that reproduces the issue

# code goes here between backticks
from bokeh.plotting import figure, show
from bokeh.layouts import layout
p = figure(match_aspect=True)
p.image_url(['https://static.bokeh.org/logos/logo.png'],0,0,1,1)
layer = layout(p, sizing_mode='stretch_both')
show(layer)

Stack traceback and/or browser JavaScript console output

Screenshots or screencasts of the bug in action

bokeh_plot

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

No branches or pull requests

2 participants