question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update Layout Documentation

See original GitHub issue

Both 'stretch_height' and 'stretch_both' sizing_modes don’t actually fill the whole screen whatever I do in the released bokeh 1.1.0 whatever I do. This worked for most of the release candidates so I’ll try to track down at what point the regression occurred.

bokeh 1.1.0 Python 3.6 OS: OSX 10.13.4 Browser: Chrome 73.0.3683.103

from bokeh.plotting import figure, Row, output_file, show

output_file('test.html')

p1 = figure(sizing_mode='stretch_both')
p1.scatter([1, 2, 3], [1, 2, 3])

p2 = figure(sizing_mode='stretch_both')
p2.scatter([1, 2, 3], [1, 2, 3])

show(Row(p1, p2))

Screen Shot 2019-04-12 at 3 00 30 PM

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bryevdvcommented, Apr 12, 2019

We clearly need to update the docs on layout (which have always been fairly thin) so I will use this issue to track that.

0reactions
mattpapcommented, Apr 12, 2019

Row() and row() behavior is different when it comes to applying sizing mode to its children. This is an unfortunate difference that was inherited from the old layout. I will be happy to unify this in 2.0. This aside, layout should allow for both inside out and outside in expansion, so this is clearly a bug in the layout.

Read more comments on GitHub >

github_iconTop Results From Across the Web

plotly.graph_objects.Layout — 5.11.0 documentation
autosize – Determines whether or not a layout width or height that has been left ... transition – Sets transition options used during...
Read more >
updatelayout - jQuery Mobile API Documentation
This event is triggered by components within the framework that dynamically show/hide content, and is meant as a generic mechanism to notify other...
Read more >
layoutIfNeeded() | Apple Developer Documentation
Use this method to force the view to update its layout immediately. When using Auto Layout, the layout engine updates the position of...
Read more >
Update_layout argument list with Plotly - python - Stack Overflow
... single example the layout is updated with fig.update_layout(. ... it in the Plotly documentation: plotly.com/python/reference/#layout.
Read more >
Layout - OroCommerce, OroCRM and OroPlatform ...
A layout update is a set of actions that should be performed with the layout in order to customize the page look depending...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found