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] Div model layout differences between bokeh 2.2.3 and 2.3.1 #11161

Closed
Tracked by #11403
jeffreymonaco opened this issue Apr 12, 2021 · 0 comments · Fixed by #11394
Closed
Tracked by #11403

[BUG] Div model layout differences between bokeh 2.2.3 and 2.3.1 #11161

jeffreymonaco opened this issue Apr 12, 2021 · 0 comments · Fixed by #11394

Comments

@jeffreymonaco
Copy link

On upgrading from bokeh 2.2.3 to bokeh 2.3.1, layouts of my apps are visually different; inspection of JavaScript console information points to changes in the Div elements as the cause.

Here’s a standalone minimal reproducible example to highlight the issue, where it seems that width and height properties of the Div model are no longer honored when rendered.

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
"""

from bokeh.models import Div
from bokeh.io import show

_text = """
    <div>
        <span style="font-weight: bold; color: #1F77B4; font-size: 100%">
        Sampling Period
        </span>
    </div>"""
_div = Div(text=_text, width=500, height=50, margin=(5,5,5,5), background='#EFEFEF')

show(_div)

The browser output with the Div elements properties shown in the console for bokeh 2.2.3 …

image

The browser output with the Div elements properties shown in the console for bokeh 2.3.1 …

image

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

Successfully merging a pull request may close this issue.

3 participants