Skip to content

Commit

Permalink
Remove some finniky logic causing rendering glitches
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Kearl committed Apr 26, 2021
1 parent 2023dd3 commit 633562d
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,6 @@ export class GettingStartedPage extends EditorPane {
stepElement.style.height = ``;
stepElement.style.height = `${stepElement.scrollHeight}px`;

setTimeout(() => {
// Scrollheight doesn't play nicely with the -webkit-line-clamp logic, soketomes clipped even after the first scan
// rescan in a lil bit to help things along.
stepElement.style.height = ``;
stepElement.style.height = `${stepElement.scrollHeight}px`;
}, 50);

if (!this.currentCategory || this.currentCategory.content.type !== 'steps') {
throw Error('cannot expand step for category of non steps type' + this.currentCategory?.id);
}
Expand Down

0 comments on commit 633562d

Please sign in to comment.