Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Switch typeof height(?) #1

Open
Alynva opened this issue Jul 27, 2018 · 0 comments
Open

Switch typeof height(?) #1

Alynva opened this issue Jul 27, 2018 · 0 comments

Comments

@Alynva
Copy link

Alynva commented Jul 27, 2018

Should it be width here?

switch (typeof height) {
case 'number':
width = width | 0;
style.width = width;
style.minWidth = width;
style.maxWidth = width;
break;
case 'string':
style.width = width;
break;
case 'undefined':
style.width = style.width ? style.width : '100%';
break;
default:
break;
}

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

No branches or pull requests

1 participant