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.

automaticLayout broken on master?

See original GitHub issue

Repro:

  • Working: Drag the sidebar left of right on 3.7.5
  • Not Working: 3.8.3

3.7.5 is from about a month ago, 3.8.3 is from yesterday.

They both have the same outer code for the playground, but refer to different Monaco-editors and Monaco TypeScripts. I’ll know I can move off automaticLayout by telling the editor when the sidebar changes, but I’ll leave it this way for a few days so there’s a a working repro.

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
nrayburn-techcommented, Mar 3, 2020

Resize Observer is the best way to do it, but lacks Safari support and I think at the time Monaco was still supporting IE, which also doesn’t support Resize Observer. Maybe we should implement Resize Observer and then use the interval timer as a fallback for Safari?

1reaction
alexdimacommented, Mar 3, 2020

Well, I think we’re using the wrong concept. I just found https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Auto Layout - Apple Developer
Auto Layout dynamically calculates the size and position of all the views in your view hierarchy, based on constraints placed on those views....
Read more >
Applying an Automatic Layout | yFiles for HTML Documentation
To adopt the new layout in an animated fashion, apply a layout algorithm to a GraphComponent (and its IGraph) using the morphLayout method....
Read more >
Monaco Editor component for React.
MonacoEditor component for React. ... This library is supported for use in Windows Tailored Apps only. Build: 6.2.8100.0.
Read more >
Automatic Layout - The LibreOffice Help
1; 2; 3; 4; 5; 6; →; ⇥. 3D chartsaligning -- 2D chartsaligning -- titles in chartsarea chartsaverages in chartsaxes -- better scalingaxes ......
Read more >
Learn how to use parent pages in InDesign - Adobe Support
Any reference to Master page is replaced by Parent page in our Help articles for the English, ... (See About automatic layout adjustment.)....
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