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

Accept strings for contentWidth and contentHeight #361

Closed
wants to merge 1 commit into from
Closed

Accept strings for contentWidth and contentHeight #361

wants to merge 1 commit into from

Conversation

karlhorky
Copy link
Contributor

To allow units such as 85vw.


Hm, did I miss a reason why this won't work? Like causing problems with the presenter mode or different contexts where the slides will be displayed?

@karlhorky
Copy link
Contributor Author

Yeah, looks like I missed some things. It's expecting number values here:

https://github.com/karlhorky/spectacle/blob/content-dimensions-strings/src/components/manager.js#L214
https://github.com/karlhorky/spectacle/blob/content-dimensions-strings/src/components/manager.js#L532-L533

I guess there's probably not a desire to refactor these for this feature...

@kenwheeler
Copy link
Contributor

Yeah that will be tough to work around. Closing for now

@kenwheeler kenwheeler closed this Oct 3, 2017
@karlhorky
Copy link
Contributor Author

No problem, if this is a desired feature then this can be reopened or another PR started.

@karlhorky karlhorky deleted the content-dimensions-strings branch October 4, 2017 16:55
maxcan added a commit to maxcan/spectacle that referenced this pull request Jul 2, 2019
The docs call for a number but strings (i.e. 95vw) seem to work fine.  FormidableLabs#361 suggested a problem but that code doesn't seem to exist anymore.
@maxcan
Copy link
Contributor

maxcan commented Jul 10, 2019

Currently the only place contentWidth and contentHeight are used for arithmetic in the code is here:

: this.props.contentWidth + 150,

Can we replace that with a call to css calc(..). have a branch but need to work on getting the tests to pass.

@kale-stew
Copy link
Contributor

@maxcan I'm happy to look at your branch with you. I know contentWidth is further reaching that it initially appears, I've had to modify this prop in the past, so I might be able to point you in the right direction?

kale-stew pushed a commit that referenced this pull request Jul 31, 2019
The docs call for a number but strings (i.e. 95vw) seem to work fine.  #361 suggested a problem but that code doesn't seem to exist anymore.
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.

None yet

4 participants