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

fix boarder fix #1920 #1952

Closed
wants to merge 1 commit into from
Closed

fix boarder fix #1920 #1952

wants to merge 1 commit into from

Conversation

masak64
Copy link

@masak64 masak64 commented Jul 31, 2019

Fix problem with render boarder. Variable side is increment only if condition is true. But if you have only boarder-top and boarder-bottom, them boarder-bottom render it like border-left.

@hakimio hakimio mentioned this pull request Sep 2, 2019
@thejustbrand
Copy link

Hi, when will this PR be merged in?

Copy link

@Jerther Jerther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was about to create a new PR when I found it already existed ;)

I suggested some minor stylistic changes. This does indeed fix the border problem.

@@ -696,10 +696,11 @@ export class CanvasRenderer {
});
}

let side = 0;
let side = -1;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather leave this to 0.

for (const border of borders) {
side++
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then move this after the if. Don't forget the trailing semicolon (;)

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

Successfully merging this pull request may close these issues.

3 participants